All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aid.cbr.tools.core.cbrcase.ArrayWeightVector

java.lang.Object
   |
   +----aid.cbr.tools.core.cbrcase.ArrayWeightVector

public class ArrayWeightVector
extends Object
implements WeightVector
Implements a weight vector with an array of float.

Version:
$Revision$, $Date$
Author:
M. Jaczynski

Constructor Index

 o ArrayWeightVector(int)
Creates a new weight vector.

Method Index

 o clone()
 o getWeight(int)
 o setWeight(int, float)
Sets the weigth of an indice.
 o size()

Constructors

 o ArrayWeightVector
 public ArrayWeightVector(int size)
Creates a new weight vector.

Parameters:
size - the size of the array

Methods

 o setWeight
 public void setWeight(int i,
                       float f)
Sets the weigth of an indice.

Parameters:
i - the position
f - the weight
 o getWeight
 public float getWeight(int i)
 o size
 public int size()
 o clone
 public Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index