
V - Vector typepublic class RandomSampleReferencePoints<V extends NumberVector<?>> extends Object implements ReferencePointsHeuristic<V>
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomSampleReferencePoints.Parameterizer<V extends NumberVector<?>>
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 - Sampling sizepublic <T extends V> Collection<V> getReferencePoints(Relation<T> db)
ReferencePointsHeuristicgetReferencePoints in interface ReferencePointsHeuristic<V extends NumberVector<?>>db - Database