V
- Vector typepublic class RangeQuerySelectivity<V extends NumberVector> extends AbstractDistanceBasedAlgorithm<V,Result>
Modifier and Type | Class and Description |
---|---|
static class |
RangeQuerySelectivity.Parameterizer<V extends NumberVector>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
protected double |
radius
Query radius
|
protected RandomFactory |
random
Random sampling seed.
|
protected double |
sampling
Relative number of object to use in sampling.
|
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
RangeQuerySelectivity(DistanceFunction<? super V> distanceFunction,
double radius,
double sampling,
RandomFactory random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Result |
run(Database database,
Relation<V> relation) |
getDistanceFunction
run
private static final Logging LOG
protected double radius
protected double sampling
protected RandomFactory random
public RangeQuerySelectivity(DistanceFunction<? super V> distanceFunction, double radius, double sampling, RandomFactory random)
distanceFunction
- Distance functionradius
- Radiussampling
- Sampling raterandom
- Random sampling generatorpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<Result>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Result>
Copyright © 2019 ELKI Development Team. License information.