Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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

public class GridBasedReferencePoints<O extends NumberVector<O,?>>
extends AbstractLoggable
implements ReferencePointsHeuristic<O>

Grid-based strategy to pick reference points.

Author:
Erich Schubert

Field Summary
static OptionID GRID_ID
          OptionID for GRID_PARAM
private  IntParameter GRID_PARAM
          Parameter to specify the grid resolution.
static OptionID GRID_SCALE_ID
          OptionID for GRID_SCALE_PARAM
private  DoubleParameter GRID_SCALE_PARAM
          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_PARAM.
protected  double gridscale
          Holds the value of GRID_SCALE_PARAM.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
GridBasedReferencePoints(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
 Collection<O> getReferencePoints(Database<O> db)
          Get the reference points for the given database.
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
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
OptionID for GRID_PARAM


GRID_PARAM

private final IntParameter GRID_PARAM
Parameter to specify the grid resolution.

Key: -grid.size


GRID_SCALE_ID

public static final OptionID GRID_SCALE_ID
OptionID for GRID_SCALE_PARAM


GRID_SCALE_PARAM

private final DoubleParameter GRID_SCALE_PARAM
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_PARAM.


gridscale

protected double gridscale
Holds the value of GRID_SCALE_PARAM.

Constructor Detail

GridBasedReferencePoints

public GridBasedReferencePoints(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
Method Detail

getReferencePoints

public Collection<O> getReferencePoints(Database<O> db)
Description copied from interface: ReferencePointsHeuristic
Get the reference points for the given database.

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

Release 0.3 (2010-03-31_1612)