fr.lip6.type
Class IntVector

java.lang.Object
  extended by fr.lip6.type.MLVector<int[]>
      extended by fr.lip6.type.IntVector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IntVector
extends MLVector<int[]>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.lip6.type.MLVector
eps, length, values
 
Constructor Summary
IntVector()
           
IntVector(int[] f)
           
 
Method Summary
 MLVector<int[]> add(MLVector<int[]> lv)
          addition of vectors
 double distChi1(MLVector<int[]> lv)
          chi² distance with abs() instead of pow()
 double distChi2(MLVector<int[]> lv)
          Chi² distance between vectors.
 double distL2(MLVector<int[]> lv)
          L2 distance between the vectors.
 double dot(MLVector<int[]> lvector)
          return dot product (scalar product)
 MLVector<int[]> mult(double d)
          multiplicaton par un scalaire.
 MLVector<int[]> mult(MLVector<int[]> lv)
          multiplication membre à membre
 MLVector<int[]> Normalize()
          return a Vector colinear to this with norm 1
 MLVector<int[]> NormalizeLocal()
          set the norm of this vector to 1
 java.lang.String toString()
           
 MLVector<int[]> zero()
          return zero of the input space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntVector

public IntVector()

IntVector

public IntVector(int[] f)
Method Detail

add

public MLVector<int[]> add(MLVector<int[]> lv)
Description copied from class: MLVector
addition of vectors

Specified by:
add in class MLVector<int[]>
Returns:
a new MLVector that is the addition of this MLVector and lvector

dot

public double dot(MLVector<int[]> lvector)
Description copied from class: MLVector
return dot product (scalar product)

Specified by:
dot in class MLVector<int[]>
Returns:
dot product between this MLVector and lvector

distChi2

public double distChi2(MLVector<int[]> lv)
Description copied from class: MLVector
Chi² distance between vectors.

Specified by:
distChi2 in class MLVector<int[]>
Returns:
Chi² distance between this MLVector and lv

distL2

public double distL2(MLVector<int[]> lv)
Description copied from class: MLVector
L2 distance between the vectors.

Specified by:
distL2 in class MLVector<int[]>
Returns:
L2 distance between this MLVector and lv

distChi1

public double distChi1(MLVector<int[]> lv)
Description copied from class: MLVector
chi² distance with abs() instead of pow()

Specified by:
distChi1 in class MLVector<int[]>
Returns:
Chi^1 distance between this MLVector and lv

mult

public MLVector<int[]> mult(MLVector<int[]> lv)
Description copied from class: MLVector
multiplication membre à membre

Specified by:
mult in class MLVector<int[]>
Returns:
a new MLVector that is a member to member product of composants from this MLVector and lv

zero

public MLVector<int[]> zero()
Description copied from class: MLVector
return zero of the input space

Specified by:
zero in class MLVector<int[]>
Returns:
return zero representation in input space

mult

public MLVector<int[]> mult(double d)
Description copied from class: MLVector
multiplicaton par un scalaire.

Specified by:
mult in class MLVector<int[]>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Normalize

public MLVector<int[]> Normalize()
Description copied from class: MLVector
return a Vector colinear to this with norm 1

Specified by:
Normalize in class MLVector<int[]>

NormalizeLocal

public MLVector<int[]> NormalizeLocal()
Description copied from class: MLVector
set the norm of this vector to 1

Specified by:
NormalizeLocal in class MLVector<int[]>