- java.lang.Object
-
- com.pervasive.datarush.analytics.cluster.ComparisonMeasure
-
public class ComparisonMeasure extends Object
Corresponds to the ComparisonMeasure PMML element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComparisonMeasure.Builder
Builder forComparisonMeasure
instances.static class
ComparisonMeasure.Kind
Values of this enumeration correspond to the comparison measure kinds forComparisonMeasure
s in clustering models in the PMML specification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComparisonMeasure.Builder
builder(AggregationFunctionConstants aggregationFunction, ComparisonMeasure.Kind kind)
Creates a builder that buildsComparisonMeasure
instances.AggregationFunction
getAggregationFunction()
Gets theAggregationFunction
used by thisComparisonMeasure
instance.CompareFunction
getCompareFunction()
Gets theCompareFunction
of thisComparisonMeasure
instance.ComparisonMeasure.Kind
getKind()
Gets theComparisonMeasure.Kind
of thisComparisonMeasure
instance.double
getPParameter()
Gets the p-parameter value used by thisComparisonMeasure
instance.
-
-
-
Method Detail
-
getAggregationFunction
public AggregationFunction getAggregationFunction()
Gets theAggregationFunction
used by thisComparisonMeasure
instance.- Returns:
- the
AggregationFunction
used by thisComparisonMeasure
instance
-
getKind
public ComparisonMeasure.Kind getKind()
Gets theComparisonMeasure.Kind
of thisComparisonMeasure
instance.- Returns:
- the
ComparisonMeasure.Kind
of thisComparisonMeasure
instance
-
getCompareFunction
public CompareFunction getCompareFunction()
Gets theCompareFunction
of thisComparisonMeasure
instance.- Returns:
- the
CompareFunction
of thisComparisonMeasure
instance
-
getPParameter
public double getPParameter()
Gets the p-parameter value used by thisComparisonMeasure
instance.- Returns:
- the p-parameter value used by this
ComparisonMeasure
instance
-
builder
public static ComparisonMeasure.Builder builder(AggregationFunctionConstants aggregationFunction, ComparisonMeasure.Kind kind)
Creates a builder that buildsComparisonMeasure
instances. The parameters aggregation function and kind are required parameters. For other parameters defaults will be used:CompareFunction.absDiff
will be used as default compare function, p-parameter will be set toDouble.NaN
.- Parameters:
aggregationFunction
- theAggregationFunction
kind
- theComparisonMeasure.Kind
- Returns:
ComparisonMeasure.Builder
-
-