
O - Object typeD - Distance typepublic static class RandomSampleKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D>
| Modifier and Type | Field and Description | 
|---|---|
| private RandomFactory | rndRandom generator | 
| static OptionID | SEED_IDRandom number generator seed. | 
| private double | shareRelative share of objects to get | 
| static OptionID | SHARE_IDParameter to specify how many objects to consider for computing the
 kNN. | 
distanceFunction, k| Constructor and Description | 
|---|
| RandomSampleKNNPreprocessor.Factory.Parameterizer() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected RandomSampleKNNPreprocessor.Factory<O,D> | makeInstance()Make an instance after successful configuration. | 
| protected void | makeOptions(Parameterization config)Add all options. | 
configure, makepublic static final OptionID SHARE_ID
 Key: -randomknn.share
 
public static final OptionID SEED_ID
 Key: -randomknn.seed
 
private double share
private RandomFactory rnd
public RandomSampleKNNPreprocessor.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizermakeOptions in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>config - Parameterization to add options to.protected RandomSampleKNNPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizermakeInstance in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>