idl.tmt.representation.matrix
Class VectorNormalizer

java.lang.Object
  |
  +--idl.tmt.representation.matrix.VectorNormalizer

public class VectorNormalizer
extends java.lang.Object

Provides functionality to center and normalize a numeric vector

Author:
miles

Field Summary
private  int dimension
           
private  double len
           
private  double vMean
           
private  double vNorm
           
private  DoubleMatrix1D x
           
 
Constructor Summary
VectorNormalizer(DoubleMatrix1D a, int d)
           
 
Method Summary
 DoubleMatrix1D center()
           
 void getMean()
           
 void getNorm()
           
 DoubleMatrix1D normalize()
           
 double showNorm()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

private DoubleMatrix1D x

dimension

private int dimension

len

private double len

vNorm

private double vNorm

vMean

private double vMean
Constructor Detail

VectorNormalizer

public VectorNormalizer(DoubleMatrix1D a,
                        int d)
Method Detail

getNorm

public void getNorm()

getMean

public void getMean()

center

public DoubleMatrix1D center()

showNorm

public double showNorm()

normalize

public DoubleMatrix1D normalize()