
V - Object typepublic class RandomGeneratedReferencePoints<V extends NumberVector<?>> extends Object implements ReferencePointsHeuristic<V>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RandomGeneratedReferencePoints.Parameterizer<V extends NumberVector<?>>Parameterization class. | 
| Modifier and Type | Field and Description | 
|---|---|
| static OptionID | N_IDParameter to specify the number of requested reference points. | 
| protected int | samplesizeHolds the value of  N_ID. | 
| protected double | scaleHolds the value of  SCALE_ID. | 
| static OptionID | SCALE_IDParameter for additional scaling of the space, to allow out-of-space
 reference points. | 
| Constructor and Description | 
|---|
| RandomGeneratedReferencePoints(int samplesize,
                              double scale)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends V>  | getReferencePoints(Relation<T> db)Get the reference points for the given database. | 
public static final OptionID N_ID
 Key: -generate.n
 
public static final OptionID SCALE_ID
 Key: -generate.scale
 
protected int samplesize
N_ID.protected double scale
SCALE_ID.public RandomGeneratedReferencePoints(int samplesize,
                              double scale)
samplesize - Size of desired sample setscale - Scaling factorpublic <T extends V> Collection<V> getReferencePoints(Relation<T> db)
ReferencePointsHeuristicgetReferencePoints in interface ReferencePointsHeuristic<V extends NumberVector<?>>db - Database