public abstract class HighDimClusteringProvider extends java.lang.Object implements ContextFeatureProvider
| Modifier and Type | Field and Description |
|---|---|
protected HighDimensionalContextCreator |
contextProvider |
protected org.apache.commons.math3.ml.clustering.evaluation.ClusterEvaluator<HighDimPoint> |
evaluator |
protected org.apache.commons.math3.ml.distance.DistanceMeasure |
measure |
| Constructor and Description |
|---|
HighDimClusteringProvider() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
computeFeature(org.apache.commons.collections4.MultiSet<Context> equalContexts)
Extracts a feature from the context.
|
protected abstract org.apache.commons.math3.ml.clustering.evaluation.ClusterEvaluator<HighDimPoint> |
getClusterEvaluator(org.apache.commons.math3.ml.distance.DistanceMeasure measure)
Gets the evaluator that will compute the score based on the clustering available for this method.
|
int |
getNumberOfResultFeatures()
If a feature provider computes 1 feature, it return 1, if 2, then 2.
|
protected final HighDimensionalContextCreator contextProvider
protected final org.apache.commons.math3.ml.distance.DistanceMeasure measure
protected final org.apache.commons.math3.ml.clustering.evaluation.ClusterEvaluator<HighDimPoint> evaluator
protected abstract org.apache.commons.math3.ml.clustering.evaluation.ClusterEvaluator<HighDimPoint> getClusterEvaluator(org.apache.commons.math3.ml.distance.DistanceMeasure measure)
measure - the DistanceMeasure used in the clustersClusterEvaluatorpublic final double[] computeFeature(org.apache.commons.collections4.MultiSet<Context> equalContexts)
ContextFeatureProviderContextParameters.WindowTypecomputeFeature in interface ContextFeatureProviderequalContexts - a preprocessed bag/multiset of contextspublic int getNumberOfResultFeatures()
ContextFeatureProviderHighDimClusteringProvider that returns the number of clusters and a cluster variance metric.getNumberOfResultFeatures in interface ContextFeatureProvider