O
- Object typepublic static class KNNBenchmarkAlgorithm.Parameterizer<O> extends AbstractDistanceBasedAlgorithm.Parameterizer<O>
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 |
---|
Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected KNNBenchmarkAlgorithm<O> |
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>
config
- Parameterization to add options to.protected KNNBenchmarkAlgorithm<O> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer
Copyright © 2019 ELKI Development Team. License information.