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 class
MissingValueWeights.Builder
Builder forMissingValueWeights
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MissingValueWeights.Builder
builder(double[] weights)
Creates a builder that buildsMissingValueWeights
instances with the provided missing value weights.static MissingValueWeights
createDefault(int size)
Creates aMissingValueWeights
instance 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 thisMissingValueWeights
instance.
-
-
-
Method Detail
-
getNumArray
public double[] getNumArray()
Gets the missing value weights array of thisMissingValueWeights
instance.- Returns:
- the missing value weights of this instance
-
createDefault
public static MissingValueWeights createDefault(int size)
Creates aMissingValueWeights
instance 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
MissingValueWeights
instance with default missing value weights
-
builder
public static MissingValueWeights.Builder builder(double[] weights)
Creates a builder that buildsMissingValueWeights
instances with the provided missing value weights.- Parameters:
weights
- the missing value weights, must not be null- Returns:
MissingValueWeights.Builder
-
-