de.lmu.ifi.dbs.elki.utilities.referencepoints
Class AxisBasedReferencePoints<O extends NumberVector<O,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
.
AxisBasedReferencePoints
public AxisBasedReferencePoints(Parameterization config)
- Constructor, adhering to
Parameterizable
- Parameters:
config
- Parameterization
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.