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