Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.referencepoints
Class AxisBasedReferencePoints<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.AxisBasedReferencePoints<O>
Type Parameters:
O - Object type
All Implemented Interfaces:
Parameterizable, ReferencePointsHeuristic<O>

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

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.

Author:
Erich Schubert

Field Summary
static OptionID SPACE_SCALE_ID
          OptionID for SPACE_SCALE_PARAM
private  DoubleParameter SPACE_SCALE_PARAM
          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_PARAM.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
AxisBasedReferencePoints(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

SPACE_SCALE_ID

public static final OptionID SPACE_SCALE_ID
OptionID for SPACE_SCALE_PARAM


SPACE_SCALE_PARAM

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

Constructor Detail

AxisBasedReferencePoints

public AxisBasedReferencePoints(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)