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

Constructor Index

 o ConstantWeightVector()

Method Index

 o clone()
 o getWeight(int)
Returns the weight 1 for every indice
 o size()
Returns the size of this vector.

Constructors

 o ConstantWeightVector
 public ConstantWeightVector()

Methods

 o getWeight
 public float getWeight(int i)
Returns the weight 1 for every indice

Parameters:
i - the position
Returns:
always 1
 o size
 public int size()
Returns the size of this vector.

Returns:
the size i.e. Integer.MAX_VALUE
 o clone
 public Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index