public class RandomGeneratedReferencePoints extends java.lang.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 |
---|---|
java.util.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 java.util.Collection<? extends NumberVector> getReferencePoints(Relation<? extends NumberVector> db)
ReferencePointsHeuristic
getReferencePoints
in interface ReferencePointsHeuristic
db
- DatabaseCopyright © 2019 ELKI Development Team. License information.