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

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

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

Strategy to pick reference points by placing them on the axis ends. This strategy produces n+2 reference points that lie on the edges of the surrounding cube.


Nested Class Summary
static class AxisBasedReferencePoints.Parameterizer<V extends NumberVector<V,?>>
          Parameterization class.
 
Field Summary
static OptionID SPACE_SCALE_ID
          Parameter to specify the extra scaling of the space, to allow out-of-data-space reference points.
protected  double spacescale
          Holds the value of SPACE_SCALE_ID.
 
Constructor Summary
AxisBasedReferencePoints(double spacescale)
          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

SPACE_SCALE_ID

public static final OptionID SPACE_SCALE_ID
Parameter to specify the extra scaling of the space, to allow out-of-data-space reference points.

Key: -axisref.scale


spacescale

protected double spacescale
Holds the value of SPACE_SCALE_ID.

Constructor Detail

AxisBasedReferencePoints

public AxisBasedReferencePoints(double spacescale)
Constructor.

Parameters:
spacescale -
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)