Package edu.cmu.tetrad.sem
Record Class SemIm.Result
java.lang.Object
java.lang.Record
edu.cmu.tetrad.sem.SemIm.Result
- Record Components:
shrinkageMode- The shrinkage mode used in the independent test.dataSet- The data set utilized in the analysis or computation.N- The sample size associated with the computation.im- The structural equation model implied by the computation or analysis.
- Enclosing class:
SemIm
public static record SemIm.Result(IndTestFisherZ.ShrinkageMode shrinkageMode, DataSet dataSet, int N, SemIm im)
extends Record
Represents the result of a computation or analysis, encapsulating the following:
- The shrinkage mode used in an independent test.
- The data set involved in the computation.
- The sample size (N) associated with the computation.
- The structural equation model implied by the computation.
This record serves as an immutable data structure for storing these components.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(IndTestFisherZ.ShrinkageMode shrinkageMode, DataSet dataSet, int N, SemIm im) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataSet()Returns the value of thedataSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.im()Returns the value of theimrecord component.intN()Returns the value of theNrecord component.Returns the value of theshrinkageModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
shrinkageMode- the value for theshrinkageModerecord componentdataSet- the value for thedataSetrecord componentN- the value for theNrecord componentim- the value for theimrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
shrinkageMode
Returns the value of theshrinkageModerecord component.- Returns:
- the value of the
shrinkageModerecord component
-
dataSet
Returns the value of thedataSetrecord component.- Returns:
- the value of the
dataSetrecord component
-
N
public int N()Returns the value of theNrecord component.- Returns:
- the value of the
Nrecord component
-
im
Returns the value of theimrecord component.- Returns:
- the value of the
imrecord component
-