Package elki.utilities.referencepoints
Class RandomGeneratedReferencePoints
- java.lang.Object
-
- elki.utilities.referencepoints.RandomGeneratedReferencePoints
-
- All Implemented Interfaces:
ReferencePointsHeuristic
public class RandomGeneratedReferencePoints extends java.lang.Object implements ReferencePointsHeuristic
Reference points generated randomly within the used data space.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomGeneratedReferencePoints.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected RandomFactory
rnd
Random generator.protected int
samplesize
Holds the sample size.protected double
scale
Holds the scaling factor.
-
Constructor Summary
Constructors Constructor Description RandomGeneratedReferencePoints(int samplesize, double scale, RandomFactory rnd)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends NumberVector>
getReferencePoints(Relation<? extends NumberVector> db)
Get the reference points for the given database.
-
-
-
Field Detail
-
samplesize
protected int samplesize
Holds the sample size.
-
scale
protected double scale
Holds the scaling factor.
-
rnd
protected RandomFactory rnd
Random generator.
-
-
Constructor Detail
-
RandomGeneratedReferencePoints
public RandomGeneratedReferencePoints(int samplesize, double scale, RandomFactory rnd)
Constructor.- Parameters:
samplesize
- Size of desired sample setscale
- Scaling factorrnd
- Random generator
-
-
Method Detail
-
getReferencePoints
public java.util.Collection<? extends NumberVector> getReferencePoints(Relation<? extends NumberVector> db)
Description copied from interface:ReferencePointsHeuristic
Get the reference points for the given database.- Specified by:
getReferencePoints
in interfaceReferencePointsHeuristic
- Parameters:
db
- Database- Returns:
- Collection of reference points.
-
-