V
- Vector typepublic class RandomSampleReferencePoints<V extends NumberVector<? extends V,?>> extends Object implements ReferencePointsHeuristic<V>
Modifier and Type | Class and Description |
---|---|
static class |
RandomSampleReferencePoints.Parameterizer<V extends NumberVector<? extends V,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static double |
log4
Constant used in choosing optimal table sizes
|
static OptionID |
N_ID
Parameter to specify the sample size.
|
private int |
samplesize
Holds the value of
N_ID . |
Constructor and Description |
---|
RandomSampleReferencePoints(int samplesize)
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: -sample.n
private static final double log4
private int samplesize
N_ID
.public RandomSampleReferencePoints(int samplesize)
samplesize
- public <T extends V> Collection<V> getReferencePoints(Relation<T> db)
ReferencePointsHeuristic
getReferencePoints
in interface ReferencePointsHeuristic<V extends NumberVector<? extends V,?>>
db
- Database