Class AutoAndCrossCorrelation
Inheritance
AutoAndCrossCorrelation
Assembly: TowseyLibrary.dll
Syntax
public static class AutoAndCrossCorrelation
Methods
|
Improve this Doc
View Source
AutoCorrelationOldJavaVersion(Double[])
A Java version of autocorrelation.
Declaration
public static double[] AutoCorrelationOldJavaVersion(double[] X)
Parameters
Type |
Name |
Description |
Double[] |
X |
|
Returns
|
Improve this Doc
View Source
AutoCrossCorr(Double[])
Declaration
public static double[] AutoCrossCorr(double[] v)
Parameters
Type |
Name |
Description |
Double[] |
v |
|
Returns
|
Improve this Doc
View Source
CorrelationCoefficient(Double[], Double[])
Pearsons correlation coefficient.
Equals the covariance normalised by the sd's.
Declaration
public static double CorrelationCoefficient(double[] seriesX, double[] seriesY)
Parameters
Returns
|
Improve this Doc
View Source
CrossCorr(Double[], Double[])
returns the fft spectrum of a cross-correlation function.
Declaration
public static double[] CrossCorr(double[] v1, double[] v2)
Parameters
Returns
|
Improve this Doc
View Source
DetectPeriodicityInArray(Double[], Int32)
Declaration
public static Tuple<double, double> DetectPeriodicityInArray(double[] array, int zeroBinCount)
Parameters
Type |
Name |
Description |
Double[] |
array |
|
Int32 |
zeroBinCount |
|
Returns
|
Improve this Doc
View Source
DetectPeriodicityInLongArray(Double[], Int32, Int32, Int32)
Declaration
public static Tuple<double[], double[]> DetectPeriodicityInLongArray(double[] array, int step, int segmentLength, int zeroBinCount)
Parameters
Returns
|
Improve this Doc
View Source
DetectXcorrelationInTwoArrays(Double[], Double[], Int32, Int32, Double, Double)
Declaration
public static Tuple<double[], double[]> DetectXcorrelationInTwoArrays(double[] array1, double[] array2, int step, int sampleLength, double minPeriod, double maxPeriod)
Parameters
Returns
|
Improve this Doc
View Source
GetAutoCorrelationOfSeries(Double[])
Declaration
public static double[] GetAutoCorrelationOfSeries(double[] x)
Parameters
Type |
Name |
Description |
Double[] |
x |
|
Returns
|
Improve this Doc
View Source
GetAverage(Double[])
Declaration
public static double GetAverage(double[] data)
Parameters
Type |
Name |
Description |
Double[] |
data |
|
Returns
|
Improve this Doc
View Source
GetCorrelation(Double[], Double[])
Declaration
public static double GetCorrelation(double[] x, double[] y)
Parameters
Returns
|
Improve this Doc
View Source
GetStdev(Double[])
Declaration
public static double GetStdev(double[] data)
Parameters
Type |
Name |
Description |
Double[] |
data |
|
Returns
|
Improve this Doc
View Source
GetVariance(Double[])
Declaration
public static double GetVariance(double[] data)
Parameters
Type |
Name |
Description |
Double[] |
data |
|
Returns
|
Improve this Doc
View Source
Main()
Declaration
public static void Main()
|
Improve this Doc
View Source
MyCrossCorrelation(Double[], Double[])
my own effort at Crosscorrelation.
Input array is assumed to be of even length.
It returns an array twice length of input array.
The first and last entries of the returned array will not be written to and contain zeros.
Declaration
public static double[] MyCrossCorrelation(double[] x1, double[] x2)
Parameters
Returns
|
Improve this Doc
View Source
TestCrossCorrelation()
Declaration
public static void TestCrossCorrelation()