Record Class RandomMimic.MimicGroupSpec
java.lang.Object
java.lang.Record
edu.cmu.tetrad.graph.RandomMimic.MimicGroupSpec
- Record Components:
countGroups- how many groups with this configuration; must be >= 1childrenPerGroup- number of measured indicators per group; must be >= 1parentsPerGroup- number of measured cause nodes per group; must be >= 1
- Enclosing class:
RandomMimic
public static record RandomMimic.MimicGroupSpec(int countGroups, int childrenPerGroup, int parentsPerGroup)
extends Record
Specification for a block of MIMIC groups sharing the same structure. Each group has a single
latent factor with private measured cause nodes and measured indicator nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionMimicGroupSpec(int countGroups, int childrenPerGroup, int parentsPerGroup) Constructs a new specification for a block of MIMIC groups. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechildrenPerGrouprecord component.intReturns the value of thecountGroupsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theparentsPerGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MimicGroupSpec
public MimicGroupSpec(int countGroups, int childrenPerGroup, int parentsPerGroup) Constructs a new specification for a block of MIMIC groups.- Parameters:
countGroups- the number of groups with this configuration; must be >= 1childrenPerGroup- the number of measured indicator nodes per group; must be >= 1parentsPerGroup- the number of measured cause nodes per group; must be >= 1- Throws:
IllegalArgumentException- if any of the parameters are less than 1
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
countGroups
public int countGroups()Returns the value of thecountGroupsrecord component.- Returns:
- the value of the
countGroupsrecord component
-
childrenPerGroup
public int childrenPerGroup()Returns the value of thechildrenPerGrouprecord component.- Returns:
- the value of the
childrenPerGrouprecord component
-
parentsPerGroup
public int parentsPerGroup()Returns the value of theparentsPerGrouprecord component.- Returns:
- the value of the
parentsPerGrouprecord component
-