Record Class RandomMim.LatentGroupSpec
java.lang.Object
java.lang.Record
edu.cmu.tetrad.graph.RandomMim.LatentGroupSpec
- Record Components:
countGroups- how many groups with this configuration; must be >= 1rank- number of latent factors per group; must be >= 1childrenPerGroup- number of measured children per latent group; must be >= 1
- Enclosing class:
RandomMim
public static record RandomMim.LatentGroupSpec(int countGroups, int rank, int childrenPerGroup)
extends Record
Specification for a block of groups sharing the same rank and number of children per latent.
-
Constructor Summary
ConstructorsConstructorDescriptionLatentGroupSpec(int countGroups, int rank, int childrenPerGroup) Constructs a specification for a block of groups sharing the same rank and number of children per latent. -
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.intrank()Returns the value of therankrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LatentGroupSpec
public LatentGroupSpec(int countGroups, int rank, int childrenPerGroup) Constructs a specification for a block of groups sharing the same rank and number of children per latent. Validates that all provided parameters meet the required constraints.- Parameters:
countGroups- the number of groups with this configuration; must be >= 1rank- the number of latent factors per group; must be >= 1childrenPerGroup- the number of measured children per latent group; must be >= 1- Throws:
IllegalArgumentException- if any parameter value is 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
-
rank
-
childrenPerGroup
public int childrenPerGroup()Returns the value of thechildrenPerGrouprecord component.- Returns:
- the value of the
childrenPerGrouprecord component
-