Package elki.utilities.referencepoints
Class RandomSampleReferencePoints
- java.lang.Object
-
- elki.utilities.referencepoints.RandomSampleReferencePoints
-
- All Implemented Interfaces:
ReferencePointsHeuristic
public class RandomSampleReferencePoints extends java.lang.Object implements ReferencePointsHeuristic
Random-Sampling strategy for picking reference points.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomSampleReferencePoints.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected RandomFactory
rnd
Random generator.protected int
samplesize
Sample size.
-
Constructor Summary
Constructors Constructor Description RandomSampleReferencePoints(int samplesize, 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
Sample size.
-
rnd
protected RandomFactory rnd
Random generator.
-
-
Constructor Detail
-
RandomSampleReferencePoints
public RandomSampleReferencePoints(int samplesize, RandomFactory rnd)
Constructor.- Parameters:
samplesize
- Sampling size
-
-
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.
-
-