de.lmu.ifi.dbs.elki.utilities.referencepoints
Class RandomSampleReferencePoints<V extends NumberVector<? extends V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.referencepoints.RandomSampleReferencePoints<V>
Type Parameters:
V - Vector type
All Implemented Interfaces:
InspectionUtilFrequentlyScanned, Parameterizable, ReferencePointsHeuristic<V>

public class RandomSampleReferencePoints<V extends NumberVector<? extends V,?>>
extends Object
implements ReferencePointsHeuristic<V>

Random-Sampling strategy for picking reference points.


Nested Class Summary
static class RandomSampleReferencePoints.Parameterizer<V extends NumberVector<? extends V,?>>
          Parameterization class.
 
Field Summary
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 Summary
RandomSampleReferencePoints(int samplesize)
          Constructor.
 
Method Summary
<T extends V>
Collection<V>
getReferencePoints(Relation<T> db)
          Get the reference points for the given database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_ID

public static final OptionID N_ID
Parameter to specify the sample size.

Key: -sample.n


log4

private static final double log4
Constant used in choosing optimal table sizes


samplesize

private int samplesize
Holds the value of N_ID.

Constructor Detail

RandomSampleReferencePoints

public RandomSampleReferencePoints(int samplesize)
Constructor.

Parameters:
samplesize -
Method Detail

getReferencePoints

public <T extends V> Collection<V> getReferencePoints(Relation<T> db)
Description copied from interface: ReferencePointsHeuristic
Get the reference points for the given database.

Specified by:
getReferencePoints in interface ReferencePointsHeuristic<V extends NumberVector<? extends V,?>>
Parameters:
db - Database
Returns:
Collection of reference points.

Release 0.4.0 (2011-09-20_1324)