net.myrrix.common
Class SimpleVectorMath
java.lang.Object
net.myrrix.common.SimpleVectorMath
public final class SimpleVectorMath
- extends Object
|
Method Summary |
static double |
correlation(float[] x,
float[] y)
|
static double |
cosineMeasure(float[] x,
float[] y)
|
static double |
dot(float[] x,
float[] y)
|
static double |
norm(double[] x)
|
static double |
norm(float[] x)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dot
public static double dot(float[] x,
float[] y)
- Returns:
- dot product of the two given arrays
norm
public static double norm(float[] x)
norm
public static double norm(double[] x)
correlation
public static double correlation(float[] x,
float[] y)
- Returns:
- Pearson's correlation between the series in the two given arrays
cosineMeasure
public static double cosineMeasure(float[] x,
float[] y)
Copyright © 2012. All Rights Reserved.