O
- Object typeD
- Distance typepublic static class KNNBenchmarkAlgorithm.Parameterizer<O,D extends Distance<D>> extends AbstractDistanceBasedAlgorithm.Parameterizer<O,D>
Modifier and Type | Field and Description |
---|---|
protected int |
k
K parameter
|
static OptionID |
K_ID
Parameter for the number of neighbors.
|
protected DatabaseConnection |
queries
The alternate query point source.
|
static OptionID |
QUERY_ID
Parameter for the query dataset.
|
protected RandomFactory |
random
Random generator factory
|
static OptionID |
RANDOM_ID
Parameter for the random generator
|
protected double |
sampling
Sampling size.
|
static OptionID |
SAMPLING_ID
Parameter for the sampling size.
|
distanceFunction
Constructor and Description |
---|
KNNBenchmarkAlgorithm.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected KNNBenchmarkAlgorithm<O,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID K_ID
public static final OptionID QUERY_ID
public static final OptionID SAMPLING_ID
public static final OptionID RANDOM_ID
protected int k
protected DatabaseConnection queries
protected double sampling
protected RandomFactory random
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractDistanceBasedAlgorithm.Parameterizer<O,D extends Distance<D>>
config
- Parameterization to add options to.protected KNNBenchmarkAlgorithm<O,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer