|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectesraMath.Statistics
| Nested Class Summary | |
class |
Statistics.Cluster
litttle helper class for the clustering algorithm |
| Constructor Summary | |
Statistics()
|
|
| Method Summary | |
static double |
average(double[] values)
|
static double[] |
bin(double[] values,
double lower,
double upper,
int nBins)
|
static java.util.ArrayList |
cluster(double[][] matrix,
double clusterCutoff,
int clusterSizeCutoff)
cluster analysis |
static double[][][] |
gridDensities3D(double[] gridOrigin,
double[] gridDimensions,
int[] nGridPoints,
double[][] points,
double[] weights)
|
static double[] |
leastsquare(double[] x,
double[] y)
Linear Regression to set of {xi, yi} tuples. |
static double |
max(double[] values)
|
static double |
min(double[] values)
|
static double[][] |
reweight(double[][] pos,
double[] weights)
|
static double[][] |
rmsdMatrix(double[][][] trajectory)
computes the rmsd matrix for a trajectory. |
static double[][] |
smoothen(double[][] matrix,
int size)
reduce the size of a matrix by averaging over blocks. |
static double |
stddev(double[] values,
double average)
A naive implementation for calculating a naive measure for the standard deviation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Statistics()
| Method Detail |
public static double min(double[] values)
values -
public static double max(double[] values)
values -
public static double[] bin(double[] values,
double lower,
double upper,
int nBins)
values - lower - upper - nBins -
public static double average(double[] values)
values -
public static double stddev(double[] values,
double average)
σx = (&Sigmai=1,..,N (xi - xa)2 / N)0.5
values - average -
public static double[] leastsquare(double[] x,
double[] y)
x - array of x-valuesy - array of y-values
public static double[][] reweight(double[][] pos,
double[] weights)
pos - weights -
public static final double[][] smoothen(double[][] matrix,
int size)
matrix - the input matrixsize - the size of the output matrix
public static double[][] rmsdMatrix(double[][][] trajectory)
trajectory -
public static java.util.ArrayList cluster(double[][] matrix,
double clusterCutoff,
int clusterSizeCutoff)
matrix - the cluster matrixclusterCutoff - if abs(matrix[ii][jj]) < clusterCutoff then ii and jj are neighbors.clusterSizeCutoff - stop clustering once cluster sizes reach this number
public static double[][][] gridDensities3D(double[] gridOrigin,
double[] gridDimensions,
int[] nGridPoints,
double[][] points,
double[] weights)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||