java.lang.Object
com.pervasive.datarush.analytics.cluster.ClusteringField
Corresponds to the ClusteringField PMML element.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusteringField.Builderbuilder(String field, CompareFunction compareFunction) Creates a builder that buildsClusteringFieldinstances.Gets theCompareFunctionof thisClusteringField.getField()Gets the name of the field referenced by thisClusteringField.doubleGets the weight of thisClusteringField.doubleGets the similarity scale of thisClusteringFieldbooleanGets whether this field is aClusteringField.
-
Method Details
-
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
Gets theCompareFunctionof thisClusteringField.- Returns:
- the
CompareFunctionof thisClusteringField
-
builder
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
-