Package edu.cmu.tetrad.graph
Record Class RandomMim.LatentGroupSpec
java.lang.Object
java.lang.Record
edu.cmu.tetrad.graph.RandomMim.LatentGroupSpec
- Record Components:
countGroups- how many groups with this configurationrank- # of latent factors in each such groupchildrenPerGroup- # measured children per latent group
- Enclosing class:
RandomMim
public static record RandomMim.LatentGroupSpec(int countGroups, int rank, int childrenPerGroup)
extends Record
Specification for a block of groups that share the same rank and #children per latent.
-
Constructor Summary
ConstructorsConstructorDescriptionLatentGroupSpec(int countGroups, int rank, int childrenPerGroup) Constructs a LatentGroupSpec instance with the specified configuration values. -
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 LatentGroupSpec instance with the specified configuration values.- Parameters:
countGroups- the number of groups with this configuration; must be >= 1rank- the number of latent factors in each group; must be >= 1childrenPerGroup- the number of measured children per latent group; must be >= 1- Throws:
IllegalArgumentException- if any of the parameters are less than 1
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
countGroups
public int countGroups()Returns the value of thecountGroupsrecord component.- Returns:
- the value of the
countGroupsrecord component
-
rank
public int rank()Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
childrenPerGroup
public int childrenPerGroup()Returns the value of thechildrenPerGrouprecord component.- Returns:
- the value of the
childrenPerGrouprecord component
-