~ubuntu-branches/ubuntu/vivid/elki/vivid

« back to all changes in this revision

Viewing changes to src/de/lmu/ifi/dbs/elki/algorithm/AbstractDistanceBasedAlgorithm.java

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2012-12-14 20:45:15 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121214204515-4m0d0er9ivtu5w9d
Tags: 0.5.5-1
New upstream release: 0.5.5 interim release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 */
48
48
public abstract class AbstractDistanceBasedAlgorithm<O, D extends Distance<D>, R extends Result> extends AbstractAlgorithm<R> {
49
49
  /**
50
 
   * OptionID for {@link #DISTANCE_FUNCTION_ID}
 
50
   * OptionID for {@link #DISTANCE_FUNCTION_ID}.
51
51
   */
52
 
  public static final OptionID DISTANCE_FUNCTION_ID = OptionID.getOrCreateOptionID("algorithm.distancefunction", "Distance function to determine the distance between database objects.");
 
52
  public static final OptionID DISTANCE_FUNCTION_ID = new OptionID("algorithm.distancefunction", "Distance function to determine the distance between database objects.");
53
53
 
54
54
  /**
55
55
   * Holds the instance of the distance function specified by
84
84
   * @apiviz.exclude
85
85
   */
86
86
  public abstract static class Parameterizer<O, D extends Distance<D>> extends AbstractParameterizer {
 
87
    /**
 
88
     * The distance function to use.
 
89
     */
87
90
    protected DistanceFunction<O, D> distanceFunction;
88
91
 
89
92
    @Override