- 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cluster.Builder
Builder forCluster
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cluster.Builder
builder()
Creates a builder that buildsCluster
instances based on defaults: no numArray, no name, no id, size set to -1.String
getId()
Get the id of thisCluster
.String
getName()
Get the name of thisCluster
.double[]
getNumArray()
Gets the numArray of thisCluster
.long
getSize()
Get the size of thisCluster
.double
getSumSquaresNumArray()
Gets the sum of squared values of the numArray of thisCluster
.
-
-
-
Method Detail
-
getNumArray
public double[] getNumArray()
Gets the numArray of thisCluster
.- Returns:
- the numArray of this
Cluster
-
getSumSquaresNumArray
public double getSumSquaresNumArray()
Gets the sum of squared values of the numArray of thisCluster
.- Returns:
- the sum of squared values of the numArray of this
Cluster
-
builder
public static Cluster.Builder builder()
Creates a builder that buildsCluster
instances based on defaults: no numArray, no name, no id, size set to -1.- Returns:
Cluster.Builder
-
-