use of org.locationtech.geowave.analytic.sample.BahmanEtAlSampleProbabilityFn in project geowave by locationtech.
the class KMeansParallelInitializeTest method setup.
@Before
public void setup() {
initializer.getCentroidAssociationFn().setDistanceFunction(new FeatureCentroidDistanceFn());
initializer.setCentroidFactory(new SimpleFeatureItemWrapperFactory());
final Sampler<SimpleFeature> sampler = initializer.getSampler();
sampler.setSampleProbabilityFn(new BahmanEtAlSampleProbabilityFn());
sampler.setSampleSize(5);
}
Aggregations