previous next Up Title Contents

AnGeneral Module


The EuclideanDistance_GenAnalysis(...) Routine

Syntax
double EuclideanDistance_GenAnalysis(double *arrayA, double *arrayB, ChanLen startIndex, ChanLen endIndex);


Description
This function compares two arrays using a Euclidean distance measure: m = sum[(ti - si)^2]. The smaller the return value, m, the better the match between the two arrays. This routine assumes that startIndex and endIndex are within the bounds of both arrays.


Returns
The euclidian distance measure, D^2.


Example(s)
??

The LinearRegression_GenAnalysis(...) Routine

Syntax
BOOLN LinearRegression _GenAnalysis(double *y0, double *gradient, double *y, double dx, ChanLen startIndex, ChanLen length);


Description
This subroutine calculates the best fit line parameters for a set of data points, x,y, where x = dx * i. It returns the parameters as arguments.


Returns
TRUE if this function succeeeds, otherwise it returns FALSE.


Example(s)
??


previous next Up Title Contents