java.lang.Object
com.pervasive.datarush.analytics.cluster.Cluster
All Implemented Interfaces:
Serializable

public class Cluster extends Object implements Serializable
Corresponds to the Cluster PMML element.
See Also:
  • Method Details

    • getNumArray

      public double[] getNumArray()
      Gets the numArray of this Cluster.
      Returns:
      the numArray of this Cluster
    • getName

      public String getName()
      Get the name of this Cluster.
      Returns:
      the name of this Cluster
    • getId

      public String getId()
      Get the id of this Cluster.
      Returns:
      the id of this Cluster
    • getSize

      public long getSize()
      Get the size of this Cluster.
      Returns:
      the size of this Cluster
    • getSumSquaresNumArray

      public double getSumSquaresNumArray()
      Gets the sum of squared values of the numArray of this Cluster.
      Returns:
      the sum of squared values of the numArray of this Cluster
    • builder

      public static Cluster.Builder builder()
      Creates a builder that builds Cluster instances based on defaults: no numArray, no name, no id, size set to -1.
      Returns:
      Cluster.Builder