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 classRandomSampleReferencePoints.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected RandomFactoryrndRandom generator.protected intsamplesizeSample 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:ReferencePointsHeuristicGet the reference points for the given database.- Specified by:
getReferencePointsin interfaceReferencePointsHeuristic- Parameters:
db- Database- Returns:
- Collection of reference points.
-
-