|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.utils.SAXUtils
public class SAXUtils
A helper class for SAX
| Constructor Summary | |
|---|---|
SAXUtils()
|
|
| Method Summary | |
|---|---|
static double[] |
calcBreakPoints(int bins)
Calculate the break points for equal-frequency bins for a gaussian. |
static double[][] |
calcDistMatrix(double[] bps)
Calculate the distance matrix for use in the MINDIST function. |
static void |
main(String[] args)
Runs the algorithm from commandline. |
static double |
minDist(double[] q,
double[] c,
double[][] distMatrix,
int orig_n)
Calculate the distance between 2 SAX vectors. |
static double[] |
PAA(double[] inarray,
int numwindows)
Piecewise Aggregate Approximation. |
static double[] |
toSAX(double[] inarray,
int numwindows,
double[] bps)
Convert a row in original space into SAX labels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXUtils()
| Method Detail |
|---|
public static double[] PAA(double[] inarray,
int numwindows)
inarray - input arraynumwindows - number of pieces
public static double[] toSAX(double[] inarray,
int numwindows,
double[] bps)
inarray - numwindows - bps -
public static double[][] calcDistMatrix(double[] bps)
bps - breakpoints
public static double minDist(double[] q,
double[] c,
double[][] distMatrix,
int orig_n)
q - vector 1c - vector 2distMatrix - distance matrixorig_n - original vector length
public static double[] calcBreakPoints(int bins)
bins - number of bins
public static void main(String[] args)
args - the options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||