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

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

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

Reference points generated randomly within the used data space.


Nested Class Summary
static class RandomGeneratedReferencePoints.Parameterizer<V extends NumberVector<V,?>>
          Parameterization class.
 
Field Summary
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 Summary
RandomGeneratedReferencePoints(int samplesize, double scale)
          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 number of requested reference points.

Key: -generate.n


SCALE_ID

public static final OptionID SCALE_ID
Parameter for additional scaling of the space, to allow out-of-space reference points.

Key: -generate.scale


samplesize

protected int samplesize
Holds the value of N_ID.


scale

protected double scale
Holds the value of SCALE_ID.

Constructor Detail

RandomGeneratedReferencePoints

public RandomGeneratedReferencePoints(int samplesize,
                                      double scale)
Constructor.

Parameters:
samplesize -
scale -
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<V,?>>
Parameters:
db - Database
Returns:
Collection of reference points.

Release 0.4.0 (2011-09-20_1324)