- java.lang.Object
-
- com.pervasive.datarush.analytics.cluster.ClusteringField
-
public class ClusteringField extends Object
Corresponds to the ClusteringField PMML element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusteringField.Builder
Builder forClusteringField
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusteringField.Builder
builder(String field, CompareFunction compareFunction)
Creates a builder that buildsClusteringField
instances.CompareFunction
getCompareFunction()
Gets theCompareFunction
of thisClusteringField
.String
getField()
Gets the name of the field referenced by thisClusteringField
.double
getFieldWeight()
Gets the weight of thisClusteringField
.double
getSimilarityScale()
Gets the similarity scale of thisClusteringField
boolean
isCenterField()
Gets whether this field is aClusteringField
.
-
-
-
Method Detail
-
getField
public String getField()
Gets the name of the field referenced by thisClusteringField
.- Returns:
- the name of the field referenced by this
ClusteringField
-
isCenterField
public boolean isCenterField()
Gets whether this field is aClusteringField
.- Returns:
- true, if this field is a center field, false otherwise
-
getFieldWeight
public double getFieldWeight()
Gets the weight of thisClusteringField
.- Returns:
- the weight of this
ClusteringField
-
getSimilarityScale
public double getSimilarityScale()
Gets the similarity scale of thisClusteringField
- Returns:
- the similarity scale of this
ClusteringField
-
getCompareFunction
public CompareFunction getCompareFunction()
Gets theCompareFunction
of thisClusteringField
.- Returns:
- the
CompareFunction
of thisClusteringField
-
builder
public static ClusteringField.Builder builder(String field, CompareFunction compareFunction)
Creates a builder that buildsClusteringField
instances. The parameters field and compare function are required parameters. For other parameters defaults will be used: created fields will be center fields, field weight will be set to 1.0, similarity scale will be set toDouble.NaN
.- Parameters:
field
- the referenced field, must not be null or emptycompareFunction
- theCompareFunction
for this field, must not be null- Returns:
ClusteringField.Builder
-
-