|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsugr.test.TestStatistics
Compute statistics to test covariance matrices.
Constructor Summary | |
TestStatistics(int size)
Construct a new TestStatistics for an Entity. |
Method Summary | |
void |
addObservation(Element e)
Add a new observation. |
static boolean |
check(Entity one,
Entity two,
double precision)
Checks if two entities contain the same values. |
static boolean |
check(Matrix m1,
Matrix m2,
double precision)
This method checks if two Matrices have nearly the same entries No test included if dimensions agree. |
static boolean |
check(Vector vec1,
Vector vec2,
double precision)
Checks if two vectors have nearly the same entries. |
static boolean |
check(Vector vec1,
Vector vec2,
Matrix mat1,
Matrix mat2,
double precision)
This method checks if two Vectors and Matrices have nearly the same entries. |
static boolean |
check(Vector vec1,
Vector vec2,
Matrix mat1,
Matrix mat2,
double precision,
double null_threshold)
This method checks if two Vectors and Matrices have nearly the same entries. |
static boolean |
checkAbsolute(Matrix m1,
Matrix m2,
double precision)
This method checks if two Matrices have nearly the same entries with an absolute difference between the two matrix entries No test included if dimensions agree. |
Vector |
getMue()
Get the (empirical) mean value. |
static double |
getNextGauss(double stddev)
|
Matrix |
getSigma()
Get the (empirical) covariance matrix |
static void |
main(java.lang.String[] args)
|
static void |
test1()
Example: Test a constructor. |
static void |
test2()
Test distribution of a randeom value with covariance matrix. |
static void |
test3()
Test how good the gaussian distribution of the random values is. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestStatistics(int size)
size
- Size of vector of that Entity.Method Detail |
public static boolean check(Vector vec1, Vector vec2, Matrix mat1, Matrix mat2, double precision)
vec1
- to be compared to vec2vec2
- mat1
- to be compared to mat2mat2
- precision
- factor for comparison
public static boolean check(Vector vec1, Vector vec2, Matrix mat1, Matrix mat2, double precision, double null_threshold)
vec1
- to be compared to vec2vec2
- mat1
- to be compared to mat2mat2
- precision
- factor for comparisonnull_threshold
- all differences less than this value are regarded as being 0: ONLY
for the matrixes !
public static boolean check(Matrix m1, Matrix m2, double precision)
m1
- to be compared to m2m2
- precision
- factor for comparison
public static boolean checkAbsolute(Matrix m1, Matrix m2, double precision)
m1
- to be compared to m2m2
- precision
- factor for comparison
public static boolean check(Vector vec1, Vector vec2, double precision)
vec1
- to be compared to vec2vec2
- precision
- factor for comparison
public static boolean check(Entity one, Entity two, double precision)
one
- -
first entitytwo
- -
second entityprecision
- -
precision factor for comparison
public void addObservation(Element e)
e
- the new observation.public Vector getMue()
public Matrix getSigma()
public static void main(java.lang.String[] args)
public static void test1()
public static void test3()
public static void test2()
public static double getNextGauss(double stddev)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |