Record Class MissingnessThreshold.Effect
java.lang.Object
java.lang.Record
edu.cmu.tetrad.data.missing.MissingnessThreshold.Effect
- Record Components:
threshold- The threshold applied; variables with a rate strictly above it are dropped.dropped- The variables that would be dropped, worst rate first.retained- The count that would remain.completeRows- Cases complete in every retained variable.minPairwiseCount- The smallest pairwise-complete count among retained pairs, or the row count when fewer than two variables remain.
- Enclosing class:
MissingnessThreshold
public static record MissingnessThreshold.Effect(double threshold, List<MissingnessThreshold.Candidate> dropped, int retained, int completeRows, int minPairwiseCount)
extends Record
The consequence of applying one threshold.
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionEffect(double threshold, List<MissingnessThreshold.Candidate> dropped, int retained, int completeRows, int minPairwiseCount) Creates an instance of aEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompleteRowsrecord component.dropped()Returns the value of thedroppedrecord 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 theminPairwiseCountrecord component.intretained()Returns the value of theretainedrecord component.doubleReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Effect
public Effect(double threshold, List<MissingnessThreshold.Candidate> dropped, int retained, int completeRows, int minPairwiseCount) Creates an instance of aEffectrecord class.- Parameters:
threshold- the value for thethresholdrecord componentdropped- the value for thedroppedrecord componentretained- the value for theretainedrecord componentcompleteRows- the value for thecompleteRowsrecord componentminPairwiseCount- the value for theminPairwiseCountrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
threshold
-
dropped
-
retained
-
completeRows
public int completeRows()Returns the value of thecompleteRowsrecord component.- Returns:
- the value of the
completeRowsrecord component
-
minPairwiseCount
public int minPairwiseCount()Returns the value of theminPairwiseCountrecord component.- Returns:
- the value of the
minPairwiseCountrecord component
-