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

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

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

Star-based strategy to pick reference points.


Nested Class Summary
static class StarBasedReferencePoints.Parameterizer<V extends NumberVector<V,?>>
          Parameterization class.
 
Field Summary
protected  boolean nocenter
          Holds the value of NOCENTER_ID.
static OptionID NOCENTER_ID
          Parameter to specify the grid resolution.
protected  double scale
          Holds the value of SCALE_ID.
static OptionID SCALE_ID
          Parameter to specify the extra scaling of the space, to allow out-of-data-space reference points.
 
Constructor Summary
StarBasedReferencePoints(boolean nocenter, 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

NOCENTER_ID

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

Key: -star.nocenter


SCALE_ID

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

Key: -star.scale


nocenter

protected boolean nocenter
Holds the value of NOCENTER_ID.


scale

protected double scale
Holds the value of SCALE_ID.

Constructor Detail

StarBasedReferencePoints

public StarBasedReferencePoints(boolean nocenter,
                                double scale)
Constructor.

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