Module datarush.analytics
Class MissingValueWeights
- java.lang.Object
-
- com.pervasive.datarush.analytics.cluster.MissingValueWeights
-
public class MissingValueWeights extends Object
Corresponds to the MissingValueWeights PMML element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMissingValueWeights.BuilderBuilder forMissingValueWeightsinstances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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[]getNumArray()Gets the missing value weights array of thisMissingValueWeightsinstance.
-
-
-
Method Detail
-
getNumArray
public double[] getNumArray()
Gets the missing value weights array of thisMissingValueWeightsinstance.- Returns:
- the missing value weights of this instance
-
createDefault
public static MissingValueWeights createDefault(int size)
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
public static MissingValueWeights.Builder builder(double[] weights)
Creates a builder that buildsMissingValueWeightsinstances with the provided missing value weights.- Parameters:
weights- the missing value weights, must not be null- Returns:
MissingValueWeights.Builder
-
-