
public class RandomGeneratedReferencePoints extends Object implements ReferencePointsHeuristic
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomGeneratedReferencePoints.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
protected RandomFactory |
rnd
Random generator.
|
protected int |
samplesize
Holds the sample size.
|
protected double |
scale
Holds the scaling factor.
|
| Constructor and Description |
|---|
RandomGeneratedReferencePoints(int samplesize,
double scale,
RandomFactory rnd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends NumberVector> |
getReferencePoints(Relation<? extends NumberVector> db)
Get the reference points for the given database.
|
protected int samplesize
protected double scale
protected RandomFactory rnd
public RandomGeneratedReferencePoints(int samplesize,
double scale,
RandomFactory rnd)
samplesize - Size of desired sample setscale - Scaling factorrnd - Random generatorpublic Collection<? extends NumberVector> getReferencePoints(Relation<? extends NumberVector> db)
ReferencePointsHeuristicgetReferencePoints in interface ReferencePointsHeuristicdb - DatabaseCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.