|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--picture.math.KLT
Karhunen-Loeve-Tranformation
Constructor Summary | |
KLT(double[][] vecs)
Inititializes a Karhunen-Loeve-Object. |
Method Summary | |
static double[] |
denormal(double[] v,
double[] mean)
Return the denormalization of the given vector v with the mean vector. |
double[] |
getEigenValues()
Returns the Eigenvalues of this transformation by descending magnitude. |
double[][] |
getEigenVectors()
Returns the Eigenvectors of this transformation. |
double[] |
inverseTransform(double[] x)
Inverse transform a vector. |
double[] |
inverseTransform(double[] x,
double[] weights)
Inverse transform a vector after adjusting weights. |
static void |
main(java.lang.String[] args)
|
static double[] |
normal(double[] v,
double[] mean)
Return the normalization of the given vector v with the mean vector. |
static double[][] |
normalize(double[][] vecs,
double[] mean)
Normalizes a bunch of vectors, it returns a normalized version and the mean values in the array mean |
void |
printBase()
Outputs the transformation base to stderr. |
double[] |
transform(double[] x)
Tranforms a vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KLT(double[][] vecs) throws PictureException
vecs
- array of double[]s which holds the normalized
vectors of the input.Method Detail |
public double[] getEigenValues()
public double[][] getEigenVectors()
public double[] transform(double[] x)
public double[] inverseTransform(double[] x)
public double[] inverseTransform(double[] x, double[] weights)
public void printBase()
public static double[][] normalize(double[][] vecs, double[] mean)
public static double[] normal(double[] v, double[] mean)
public static double[] denormal(double[] v, double[] mean)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |