Module datarush.analytics
Class MissingValueWeights
java.lang.Object
com.pervasive.datarush.analytics.cluster.MissingValueWeights
Corresponds to the MissingValueWeights PMML element.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MissingValueWeights.Builderbuilder(double[] weights) Creates a builder that buildsMissingValueWeightsinstances with the provided missing value weights.static MissingValueWeightscreateDefault(int size) Creates aMissingValueWeightsinstance with a numArray of the requested size filled with 1.0s (default value according to the PMML specification).double[]Gets the missing value weights array of thisMissingValueWeightsinstance.
-
Method Details
-
getNumArray
public double[] getNumArray()Gets the missing value weights array of thisMissingValueWeightsinstance.- Returns:
- the missing value weights of this instance
-
createDefault
Creates aMissingValueWeightsinstance with a numArray of the requested size filled with 1.0s (default value according to the PMML specification).- Parameters:
size- the size of the numArray- Returns:
- the
MissingValueWeightsinstance with default missing value weights
-
builder
Creates a builder that buildsMissingValueWeightsinstances with the provided missing value weights.- Parameters:
weights- the missing value weights, must not be null- Returns:
MissingValueWeights.Builder
-