public interface AggregationFunction
| Modifier and Type | Method and Description |
|---|---|
double |
apply(CompareFunction[] compareFunctions,
double[] cluster,
double[] data,
double[] fieldWeights,
double[] missingValueWeights,
double[] similarityScales,
double pParameter)
Applies this
AggregationFunction. |
boolean |
is(ComparisonMeasure.Kind kind)
Gets whether the passed
ComparisonMeasure.Kind is equal to the
ComparisonMeasure.Kind of this function; |
String |
name()
Get the name of this function.
|
double apply(CompareFunction[] compareFunctions, double[] cluster, double[] data, double[] fieldWeights, double[] missingValueWeights, double[] similarityScales, double pParameter)
AggregationFunction. Computes the distance/similarity
of two vectors.
Compare function, field weights, missing value weights and similarity
scales at index i must correspond to cluster and data vector values at
the same index.compareFunctions - the CompareFunctions to measure distance/similarity
between the vectorscluster - the cluster seedsdata - the data vectorfieldWeights - field weights for each field/its valuesmissingValueWeights - missing value weights for each field/its valuessimilarityScales - similarity scales for each field/its valuespParameter - the p-parameter, only used by the Minkowski functionString name()
boolean is(ComparisonMeasure.Kind kind)
ComparisonMeasure.Kind is equal to the
ComparisonMeasure.Kind of this function;kind - ComparisonMeasure.Kind to be compared withComparisonMeasure.Kind is equals to the ComparisonMeasure.Kind
of this functionCopyright © 2016 Actian Corporation. All rights reserved.