|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.semmf.taxon.ExpMilestCalc
public class ExpMilestCalc
This class is a milestone calculator using an exponential function m(level) = 0.5 * pow (k, level), where k is a parameter passed to the constructor. The milestone values decrease exponentially allong the hierarchy levels.
Field Summary | |
---|---|
private float |
k
Parameter used in the milestone formula (0.5 / Math.pow(k, conceptLevel)) K is a factor larger than 1 that indicates the rate at which the milestone value decreases along the hierarchy. |
Constructor Summary | |
---|---|
ExpMilestCalc(float k)
Constructor |
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 |
Field Detail |
---|
private float k
Constructor Detail |
---|
public ExpMilestCalc(float k)
k
- indicates the rate at which the milestone value decreases along
the hierarchy.Method Detail |
---|
public float[] calculateMilestones(int deepestLevel)
MilestoneCalculator
calculateMilestones
in interface MilestoneCalculator
deepestLevel
- index of the deepest level (= number of levels - 1)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |