Record Class MissingnessThreshold.Candidate
java.lang.Object
java.lang.Record
edu.cmu.tetrad.data.missing.MissingnessThreshold.Candidate
- Record Components:
name- The variable's name.missingRate- Its missingness rate.maxAbsCorrelation- The largest absolute pairwise correlation between this variable and any variable the threshold would retain, computed on their pairwise-complete cases; NaN when no pair has enough overlap to compute one. High values are the warning: this variable carries information about the retained system, so removing it may confound what is left.- The retained variable achieving that correlation, or null when none.pairwiseN- The pairwise-complete count behind that correlation, or 0 when none.
- Enclosing class:
MissingnessThreshold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxAbsCorrelationrecord component.Returns the value of themaxCorrelatedWithrecord component.doubleReturns the value of themissingRaterecord component.name()Returns the value of thenamerecord component.intReturns the value of thepairwiseNrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidate
public Candidate(String name, double missingRate, double maxAbsCorrelation, String maxCorrelatedWith, int pairwiseN) Creates an instance of aCandidaterecord class.- Parameters:
name- the value for thenamerecord componentmissingRate- the value for themissingRaterecord componentmaxAbsCorrelation- the value for themaxAbsCorrelationrecord componentmaxCorrelatedWith- the value for themaxCorrelatedWithrecord componentpairwiseN- the value for thepairwiseNrecord 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. -
name
-
missingRate
public double missingRate()Returns the value of themissingRaterecord component.- Returns:
- the value of the
missingRaterecord component
-
maxAbsCorrelation
public double maxAbsCorrelation()Returns the value of themaxAbsCorrelationrecord component.- Returns:
- the value of the
maxAbsCorrelationrecord component
-
pairwiseN
-