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

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

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

Grid-based strategy to pick reference points.


Nested Class Summary
static class GridBasedReferencePoints.Parameterizer<V extends NumberVector<V,?>>
          Parameterization class.
 
Field Summary
static OptionID GRID_ID
          Parameter to specify the grid resolution.
static OptionID GRID_SCALE_ID
          Parameter to specify the extra scaling of the space, to allow out-of-data-space reference points.
protected  int gridres
          Holds the value of GRID_ID.
protected  double gridscale
          Holds the value of GRID_SCALE_ID.
 
Constructor Summary
GridBasedReferencePoints(int gridres, double gridscale)
          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

GRID_ID

public static final OptionID GRID_ID
Parameter to specify the grid resolution.

Key: -grid.size


GRID_SCALE_ID

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

Key: -grid.oversize


gridres

protected int gridres
Holds the value of GRID_ID.


gridscale

protected double gridscale
Holds the value of GRID_SCALE_ID.

Constructor Detail

GridBasedReferencePoints

public GridBasedReferencePoints(int gridres,
                                double gridscale)
Constructor.

Parameters:
gridres -
gridscale -
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)