
V - Object typepublic class RandomGeneratedReferencePoints<V extends NumberVector<V,?>> extends Object implements ReferencePointsHeuristic<V>
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomGeneratedReferencePoints.Parameterizer<V extends NumberVector<V,?>>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
static OptionID |
N_ID
Parameter to specify the number of requested reference points.
|
protected int |
samplesize
Holds the value of
N_ID. |
protected double |
scale
Holds the value of
SCALE_ID. |
static OptionID |
SCALE_ID
Parameter 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 - scale - public <T extends V> Collection<V> getReferencePoints(Relation<T> db)
ReferencePointsHeuristicgetReferencePoints in interface ReferencePointsHeuristic<V extends NumberVector<V,?>>db - Database