Class MissingValueWeights

java.lang.Object
com.pervasive.datarush.analytics.cluster.MissingValueWeights

public class MissingValueWeights extends Object
Corresponds to the MissingValueWeights PMML element.
  • Method Details

    • getNumArray

      public double[] getNumArray()
      Gets the missing value weights array of this MissingValueWeights instance.
      Returns:
      the missing value weights of this instance
    • createDefault

      public static MissingValueWeights createDefault(int size)
      Creates a MissingValueWeights 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 builds MissingValueWeights instances with the provided missing value weights.
      Parameters:
      weights - the missing value weights, must not be null
      Returns:
      MissingValueWeights.Builder