de.fuberlin.wiwiss.semmf.taxon
Class LinMilestCalc

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.taxon.LinMilestCalc
All Implemented Interfaces:
MilestoneCalculator

public class LinMilestCalc
extends java.lang.Object
implements MilestoneCalculator

This class is a milestone calculator using a linear formula: m(level) = 1 - (level / deepestLevel).

Version:
1.0 last modified 29.11.2006
Author:
Radoslaw Oldakowski

Constructor Summary
LinMilestCalc()
           
 
Method Summary
 float[] calculateMilestones(int deepestLevel)
          The implementation of this method must return an array of float values for all taxonomy levels starting from 0 and ending at the deepest level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinMilestCalc

public LinMilestCalc()
Method Detail

calculateMilestones

public float[] calculateMilestones(int deepestLevel)
Description copied from interface: MilestoneCalculator
The implementation of this method must return an array of float values for all taxonomy levels starting from 0 and ending at the deepest level.

Specified by:
calculateMilestones in interface MilestoneCalculator
Parameters:
deepestLevel - index of the deepest level (= number of levels - 1)
Returns:
an array of float values for all taxonomy levels starting from 0 (root element) and ending at the deepest level.