All Packages Class Hierarchy This Package Previous Next Index
Class aid.cbr.tools.core.cbrcase.DecreasingFctWeightVector
java.lang.Object
|
+----aid.cbr.tools.core.cbrcase.DecreasingFctWeightVector
- public class DecreasingFctWeightVector
- extends Object
- implements WeightVector
Implements a vector of decreasing weights accodring to the position of the indice.
- Version:
- $Revision$, $Date$
- Author:
- M. Jaczynski
-
DecreasingFctWeightVector()
-
-
clone()
-
-
getWeight(int)
- Returns the computed weight 1/(i+1).
-
size()
- Returns the size of this vector.
DecreasingFctWeightVector
public DecreasingFctWeightVector()
size
public int size()
- Returns the size of this vector.
- Returns:
- the size i.e. Integer.MAX_VALUE
getWeight
public float getWeight(int i)
- Returns the computed weight 1/(i+1).
- Parameters:
- i - the position
- Returns:
- the computed weight
clone
public Object clone()
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index