public class ComparisonMeasure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ComparisonMeasure.Builder
Builder for
ComparisonMeasure instances. |
static class |
ComparisonMeasure.Kind
Values of this enumeration correspond to the comparison measure kinds for
ComparisonMeasure s in clustering models in the PMML specification. |
Modifier and Type | Method and Description |
---|---|
static ComparisonMeasure.Builder |
builder(AggregationFunctionConstants aggregationFunction,
ComparisonMeasure.Kind kind)
Creates a builder that builds
ComparisonMeasure instances. |
AggregationFunction |
getAggregationFunction()
Gets the
AggregationFunction used by this
ComparisonMeasure instance. |
CompareFunction |
getCompareFunction()
Gets the
CompareFunction of this ComparisonMeasure
instance. |
ComparisonMeasure.Kind |
getKind()
Gets the
ComparisonMeasure.Kind of this ComparisonMeasure
instance. |
double |
getPParameter()
Gets the p-parameter value used by this
ComparisonMeasure
instance. |
public AggregationFunction getAggregationFunction()
AggregationFunction
used by this
ComparisonMeasure
instance.AggregationFunction
used by this
ComparisonMeasure
instancepublic ComparisonMeasure.Kind getKind()
ComparisonMeasure.Kind
of this ComparisonMeasure
instance.ComparisonMeasure.Kind
of this
ComparisonMeasure
instancepublic CompareFunction getCompareFunction()
CompareFunction
of this ComparisonMeasure
instance.CompareFunction
of this ComparisonMeasure
instancepublic double getPParameter()
ComparisonMeasure
instance.ComparisonMeasure
instancepublic static ComparisonMeasure.Builder builder(AggregationFunctionConstants aggregationFunction, ComparisonMeasure.Kind kind)
ComparisonMeasure
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 to Double.NaN
.aggregationFunction
- the AggregationFunction
kind
- the ComparisonMeasure.Kind
ComparisonMeasure.Builder
Copyright © 2021 Actian Corporation. All rights reserved.