- 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 classClusteringField.BuilderBuilder forClusteringFieldinstances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusteringField.Builderbuilder(String field, CompareFunction compareFunction)Creates a builder that buildsClusteringFieldinstances.CompareFunctiongetCompareFunction()Gets theCompareFunctionof thisClusteringField.StringgetField()Gets the name of the field referenced by thisClusteringField.doublegetFieldWeight()Gets the weight of thisClusteringField.doublegetSimilarityScale()Gets the similarity scale of thisClusteringFieldbooleanisCenterField()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 theCompareFunctionof thisClusteringField.- Returns:
- the
CompareFunctionof thisClusteringField
-
builder
public static ClusteringField.Builder builder(String field, CompareFunction compareFunction)
Creates a builder that buildsClusteringFieldinstances. 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- theCompareFunctionfor this field, must not be null- Returns:
ClusteringField.Builder
-
-