O
- Object typepublic class DistanceQuantileSampler<O> extends AbstractDistanceBasedAlgorithm<O,CollectionResult<Vector>>
Modifier and Type | Class and Description |
---|---|
static class |
DistanceQuantileSampler.Parameterizer<O>
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Class logger.
|
private boolean |
nozeros
Flag to ignore zero distances (recommended with many duplicates).
|
private static String |
PREFIX
Statistics prefix.
|
private double |
quantile
Quantile to compute.
|
private RandomFactory |
rand
Random generator.
|
private double |
sampling
Sampling rate.
|
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
DistanceQuantileSampler(DistanceFunction<? super O> distanceFunction,
double quantile,
double sampling,
boolean nozeros,
RandomFactory rand)
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<O> rel) |
getDistanceFunction
makeParameterDistanceFunction, run
private static final Logging LOG
private static final String PREFIX
private double quantile
private double sampling
private boolean nozeros
private RandomFactory rand
public DistanceQuantileSampler(DistanceFunction<? super O> distanceFunction, double quantile, double sampling, boolean nozeros, RandomFactory rand)
distanceFunction
- Distance functionquantile
- Quantile to computesampling
- Sampling ratenozeros
- Flag to ignore zero distances (recommended with many
duplicates)rand
- Random generatorpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<CollectionResult<Vector>>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<CollectionResult<Vector>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.