Record Class MissingnessInjector.Report
java.lang.Object
java.lang.Record
edu.cmu.tetrad.data.MissingnessInjector.Report
- Record Components:
realizedRates- Realized per-variable rate, in column order.meanRowMissing- Mean number of missing cells per case.sdRowMissing- Standard deviation of the per-case missing count.sdIfIndependent- The same standard deviation predicted under independent deletion at the realized rates, namely the square root of the sum of r(1-r). The ratio of the previous field to this one is the clustering actually achieved; it is 1 when the row effect is 0.completeRows- Cases with no missing cell at all.
- Enclosing class:
MissingnessInjector
public static record MissingnessInjector.Report(double[] realizedRates, double meanRowMissing, double sdRowMissing, double sdIfIndependent, int completeRows)
extends Record
A report of what was actually injected, for checking that the realized pattern is the intended one.
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionReport(double[] realizedRates, double meanRowMissing, double sdRowMissing, double sdIfIndependent, int completeRows) Creates an instance of aReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompleteRowsrecord component.A one-line summary.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanRowMissingrecord component.double[]Returns the value of therealizedRatesrecord component.doubleReturns the value of thesdIfIndependentrecord component.doubleReturns the value of thesdRowMissingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Report
public Report(double[] realizedRates, double meanRowMissing, double sdRowMissing, double sdIfIndependent, int completeRows) Creates an instance of aReportrecord class.- Parameters:
realizedRates- the value for therealizedRatesrecord componentmeanRowMissing- the value for themeanRowMissingrecord componentsdRowMissing- the value for thesdRowMissingrecord componentsdIfIndependent- the value for thesdIfIndependentrecord componentcompleteRows- the value for thecompleteRowsrecord component
-
-
Method Details
-
description
-
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. -
realizedRates
public double[] realizedRates()Returns the value of therealizedRatesrecord component.- Returns:
- the value of the
realizedRatesrecord component
-
meanRowMissing
public double meanRowMissing()Returns the value of themeanRowMissingrecord component.- Returns:
- the value of the
meanRowMissingrecord component
-
sdRowMissing
public double sdRowMissing()Returns the value of thesdRowMissingrecord component.- Returns:
- the value of the
sdRowMissingrecord component
-
sdIfIndependent
public double sdIfIndependent()Returns the value of thesdIfIndependentrecord component.- Returns:
- the value of the
sdIfIndependentrecord component
-
completeRows
public int completeRows()Returns the value of thecompleteRowsrecord component.- Returns:
- the value of the
completeRowsrecord component
-