Module datarush.analytics
Class ComparisonMeasure.Builder
- java.lang.Object
-
- com.pervasive.datarush.analytics.cluster.ComparisonMeasure.Builder
-
- Enclosing class:
- ComparisonMeasure
public static class ComparisonMeasure.Builder extends Object
Builder forComparisonMeasure
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonMeasure
build()
Verifies the previously set values and builds aComparisonMeasure
instance based on these values.ComparisonMeasure.Builder
compareFunction(CompareFunction compareFunction)
Returns a builder that buildsComparisonMeasure
instances with the providedCompareFunction
and other parameters set to the previously provided values.ComparisonMeasure.Builder
pParameter(double pParameter)
Returns a builder that buildsComparisonMeasure
instances with the provided p-parameter and other parameters set to the previously provided values.
-
-
-
Method Detail
-
compareFunction
public ComparisonMeasure.Builder compareFunction(CompareFunction compareFunction)
Returns a builder that buildsComparisonMeasure
instances with the providedCompareFunction
and other parameters set to the previously provided values.- Parameters:
compareFunction
- theCompareFunction
, must not be null- Returns:
ComparisonMeasure.Builder
-
pParameter
public ComparisonMeasure.Builder pParameter(double pParameter)
Returns a builder that buildsComparisonMeasure
instances 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_INFINITY
and notDouble.NEGATIVE_INFINITY
) when the aggregation function isAggregationFunctionConstants.minkowski
.- Parameters:
pParameter
- the p-parameter- Returns:
ComparisonMeasure.Builder
-
build
public ComparisonMeasure build()
Verifies the previously set values and builds aComparisonMeasure
instance based on these values.- Returns:
ComparisonMeasure
-
-