fr.lip6.type
Class DoubleVector

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

public class DoubleVector
extends MLVector<double[]>

See Also:
Serialized Form

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

Constructor Detail

DoubleVector

public DoubleVector()

DoubleVector

public DoubleVector(double[] f)
Method Detail

add

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

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

dot

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

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

distChi2

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

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

distL2

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

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

distChi1

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

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

mult

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

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

mult

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

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

zero

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

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

Normalize

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

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

NormalizeLocal

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

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