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

Constructor Index

 o DecreasingFctWeightVector()

Method Index

 o clone()
 o getWeight(int)
Returns the computed weight 1/(i+1).
 o size()
Returns the size of this vector.

Constructors

 o DecreasingFctWeightVector
 public DecreasingFctWeightVector()

Methods

 o size
 public int size()
Returns the size of this vector.

Returns:
the size i.e. Integer.MAX_VALUE
 o getWeight
 public float getWeight(int i)
Returns the computed weight 1/(i+1).

Parameters:
i - the position
Returns:
the computed weight
 o clone
 public Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index