Module datarush.analytics
Class ComparisonMeasure.Builder
java.lang.Object
com.pervasive.datarush.analytics.cluster.ComparisonMeasure.Builder
- Enclosing class:
- ComparisonMeasure
Builder for
ComparisonMeasure instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies the previously set values and builds aComparisonMeasureinstance based on these values.compareFunction(CompareFunction compareFunction) Returns a builder that buildsComparisonMeasureinstances with the providedCompareFunctionand other parameters set to the previously provided values.pParameter(double pParameter) Returns a builder that buildsComparisonMeasureinstances with the provided p-parameter and other parameters set to the previously provided values.
-
Method Details
-
compareFunction
Returns a builder that buildsComparisonMeasureinstances with the providedCompareFunctionand other parameters set to the previously provided values.- Parameters:
compareFunction- theCompareFunction, must not be null- Returns:
ComparisonMeasure.Builder
-
pParameter
Returns a builder that buildsComparisonMeasureinstances with the provided p-parameter and other parameters set to the previously provided values. The p-parameter is only expected to have a valid value (notDouble.NaN, notDouble.POSITIVE_INFINITYand notDouble.NEGATIVE_INFINITY) when the aggregation function isAggregationFunctionConstants.minkowski.- Parameters:
pParameter- the p-parameter- Returns:
ComparisonMeasure.Builder
-
build
Verifies the previously set values and builds aComparisonMeasureinstance based on these values.- Returns:
ComparisonMeasure
-