T - The data type for the object being sampledpublic class CentroidDistanceBasedSamplingRankFunction<T> extends Object implements SamplingRankFunction<T>
SampleProbabilityFn.
The farther the distance, the higher the rank. Properties:
"CentroidDistanceBasedSamplingRankFunction.KMeansConfig.data_store_configuration" - The
class used to determine the prefix class name for te GeoWave Data Store parameters for a
connection to collect the starting set of centroids. Defaults to CentroidDistanceBasedSamplingRankFunction.
"CentroidDistanceBasedSamplingRankFunction.KMeansConfig.probability_function" -
implementation of SampleProbabilityFn
"CentroidDistanceBasedSamplingRankFunction.KMeansConfig.distance_function" - DistanceFn
"CentroidDistanceBasedSamplingRankFunction.KMeansConfig.centroid_factory" - AnalyticItemWrapperFactory to wrap the centroid data with the appropriate centroid wrapper
AnalyticItemWrapper
See GeoWaveConfiguratorBase for information for configuration GeoWave Data Store
for consumption of starting set of centroids.
| Modifier and Type | Field and Description |
|---|---|
protected AnalyticItemWrapperFactory<T> |
itemWrapperFactory |
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
CentroidDistanceBasedSamplingRankFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger) |
double |
rank(int sampleSize,
T value) |
static void |
setParameters(org.apache.hadoop.conf.Configuration config,
Class<?> scope,
PropertyManagement runTimeProperties) |
protected static final org.slf4j.Logger LOGGER
protected AnalyticItemWrapperFactory<T> itemWrapperFactory
public CentroidDistanceBasedSamplingRankFunction()
public static void setParameters(org.apache.hadoop.conf.Configuration config,
Class<?> scope,
PropertyManagement runTimeProperties)
public void initialize(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger)
throws IOException
initialize in interface SamplingRankFunction<T>IOExceptionpublic double rank(int sampleSize,
T value)
rank in interface SamplingRankFunction<T>Copyright © 2013–2022. All rights reserved.