Package edu.cmu.tetrad.search.score
Record Class SemBicScore.LikelihoodResult
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.score.SemBicScore.LikelihoodResult
- Record Components:
lik- The computed likelihood value.dof- The degrees of freedom used in the computation.penaltyDiscount- The penalty discount applied to the computation.sampleSize- The size of the sample used in the likelihood computation.
- Enclosing class:
SemBicScore
public static record SemBicScore.LikelihoodResult(double lik, int dof, double penaltyDiscount, int sampleSize)
extends Record
A record that encapsulates the result of a likelihood computation. This record stores the likelihood value,
degrees of freedom, penalty discount, and the sample size associated with the computation.
-
Constructor Summary
ConstructorsConstructorDescriptionLikelihoodResult(double lik, int dof, double penaltyDiscount, int sampleSize) Creates an instance of aLikelihoodResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdof()Returns the value of thedofrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelik()Returns the value of thelikrecord component.doubleReturns the value of thepenaltyDiscountrecord component.intReturns the value of thesampleSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LikelihoodResult
public LikelihoodResult(double lik, int dof, double penaltyDiscount, int sampleSize) Creates an instance of aLikelihoodResultrecord class.- Parameters:
lik- the value for thelikrecord componentdof- the value for thedofrecord componentpenaltyDiscount- the value for thepenaltyDiscountrecord componentsampleSize- the value for thesampleSizerecord 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. All components in this record class are compared with '=='. -
lik
public double lik()Returns the value of thelikrecord component.- Returns:
- the value of the
likrecord component
-
dof
public int dof()Returns the value of thedofrecord component.- Returns:
- the value of the
dofrecord component
-
penaltyDiscount
public double penaltyDiscount()Returns the value of thepenaltyDiscountrecord component.- Returns:
- the value of the
penaltyDiscountrecord component
-
sampleSize
public int sampleSize()Returns the value of thesampleSizerecord component.- Returns:
- the value of the
sampleSizerecord component
-