|
Correlation Library
1.0
|
#include "StdAfx.h"#include "CorrelationLib.h"#include "ScaledCorrelation-BB.h"#include "ScaledCorrelation-CC.h"#include "ScaledCorrelation-BC.h"#include "CrossCorrelation-BB.h"#include "CrossCorrelation-CC.h"#include "CrossCorrelation-BC.h"Defines | |
| #define | ERR_NULL_OBJECT -5 |
Functions | |
| BOOL APIENTRY | DllMain (HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) |
| Entry into the Dll space. | |
| CORRELATIONLIB_API void * | CreateScaledCorrelationComputerBB (int piScaleWindow, int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes scaled correlation on a pair of binary - binary signals. | |
| CORRELATIONLIB_API void | FreeScaledCorrelationComputerBB (void *pvObject) |
| Destructor for scaled correlation objects on binary-binary pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeScaledCorrelationBB (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, int *piaTimeStampsB, int piNrTimeStampsInB, int pbUseFisherZTransform) |
| Compute the scaled correlation of two vectors of time stamps. | |
| CORRELATIONLIB_API void | ComputeWindowedScaledCorrelationPerTrialBB (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, int *piaTimeStampsB, int piNrTimeStampsInB, int piFromOffsetInTrial, int piToOffsetInTrial, int pbUseFisherZTransform) |
| Compute the scaled correlation of two vectors of time stamps, on a partial window of the trial; ONLY ACCEPTS ONE TRIAL!!! | |
| CORRELATIONLIB_API float * | GetScaledCrossCorrelogramBB (void *pvObject) |
| Returns the buffer with the computed scaled-cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API float * | GetFiCoefficientSumsBB (void *pvObject) |
| Returns the sum of valid Fi coefficients of correlation for each bin of the correlogram. | |
| CORRELATIONLIB_API int * | GetFiCoefficientCountsBB (void *pvObject) |
| Returns how many Fi coefficients of correlation have been averaged for each bin of the scaled cross correlogram. | |
| CORRELATIONLIB_API int * | GetDistributionOfCorrelationCoefficientsBB (void *pvObject, int &piNumberOfBins, float &pfBinSize) |
| Returns the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyScaleWindowBB (void *pvObject, int piNewScale) |
| Changes the scale window for the scaled correlation;. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyCorrelationWindowBB (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyTrialLengthBB (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyAllParametersBB (void *pvObject, int piNewScale, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetScaleWindowBB (void *pvObject) |
| Get the size of the current scale window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetCorrelationWindowBB (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetTrialLengthBB (void *pvObject) |
| Get the trial length in original sampling units. | |
| CORRELATIONLIB_API int | GetDistributionOfCorrelationCoefficientsBinNrBB (void *pvObject) |
| Get the number of bins of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API float | GetDistributionOfCorrelationCoefficientsBinSizeBB (void *pvObject) |
| Get the size of a bin of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API void * | CreateScaledCorrelationComputerCC (int piScaleWindow, int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes scaled correlation on a pair of continuous - continuous signals. | |
| CORRELATIONLIB_API void | FreeScaledCorrelationComputerCC (void *pvObject) |
| Destructor for scaled correlation objects on continuous-continuous input pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeScaledCorrelationCC (void *pvObject, float *pfaSamplesA, int piNrSamplesInA, float *pfaSamplesB, int piNrSamplesInB, int pbUseFisherZTransform) |
| Compute the scaled correlation of two digitized continuous signals. | |
| CORRELATIONLIB_API void | ComputeWindowedScaledCorrelationPerTrialCC (void *pvObject, float *pfaSamplesA, int piNrSamplesInA, float *pfaSamplesB, int piNrSamplesInB, int piFromOffsetInTrial, int piToOffsetInTrial, int pbUseFisherZTransform) |
| Compute the scaled correlation of two digitized continuous signals, on a partial window of the trial; ONLY ACCEPTS ONE TRIAL!!! | |
| CORRELATIONLIB_API float * | GetScaledCrossCorrelogramCC (void *pvObject) |
| Returns the buffer with the computed scaled correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API float * | GetPearsonCoefficientSumsCC (void *pvObject) |
| Returns the sum of valid Pearson coefficients of correlation for each bin of the correlogram. | |
| CORRELATIONLIB_API int * | GetPearsonCoefficientCountsCC (void *pvObject) |
| CORRELATIONLIB_API int * | GetDistributionOfCorrelationCoefficientsCC (void *pvObject, int &piNumberOfBins, float &pfBinSize) |
| Returns the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyScaleWindowCC (void *pvObject, int piNewScale) |
| Changes the scale segment size for the scaled correlation. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyCorrelationWindowCC (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyTrialLengthCC (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyAllParametersCC (void *pvObject, int piNewScale, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetScaleWindowCC (void *pvObject) |
| Get the size of the current scale window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetCorrelationWindowCC (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetTrialLengthCC (void *pvObject) |
| Get the trial length in original sampling units. | |
| CORRELATIONLIB_API int | GetDistributionOfCorrelationCoefficientsBinNrCC (void *pvObject) |
| Get the number of bins of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API float | GetDistributionOfCorrelationCoefficientsBinSizeCC (void *pvObject) |
| Get the size of a bin of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API void * | CreateScaledCorrelationComputerBC (int piScaleWindow, int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes scaled correlation on a pair of binary - continuous signals. | |
| CORRELATIONLIB_API void | FreeScaledCorrelationComputerBC (void *pvObject) |
| Destructor for scaled correlation objects on binary-continuous input pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeScaledCorrelationBC (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, float *pfaSamplesB, int piNrSamplesInB, int pbUseFisherZTransform) |
| Compute the scaled correlation of one binary signal with one continuos signal. | |
| CORRELATIONLIB_API float * | GetScaledCrossCorrelogramBC (void *pvObject) |
| Returns the buffer with the computed scaled correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API float * | GetPBsCoefficientSumsBC (void *pvObject) |
| Returns the sum of valid Point Biserial coefficients of correlation for each bin of the correlogram. | |
| CORRELATIONLIB_API int * | GetPBsCoefficientCountsBC (void *pvObject) |
| Returns how many Point Biserial coefficients of correlation have been averaged for each bin of the scaled cross correlogram. | |
| CORRELATIONLIB_API int * | GetDistributionOfCorrelationCoefficientsBC (void *pvObject, int &piNumberOfBins, float &pfBinSize) |
| Returns the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyScaleWindowBC (void *pvObject, int piNewScale) |
| Changes the scale window for the scaled correlation. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyCorrelationWindowBC (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter;. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyTrialLengthBC (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | ScaledCorrelationModifyAllParametersBC (void *pvObject, int piNewScale, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetScaleWindowBC (void *pvObject) |
| Get the size of the current scale window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetCorrelationWindowBC (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | ScaledCorrelationGetTrialLengthBC (void *pvObject) |
| Get the trial length in original sampling units. | |
| CORRELATIONLIB_API int | GetDistributionOfCorrelationCoefficientsBinNrBC (void *pvObject) |
| Get the number of bins of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API float | GetDistributionOfCorrelationCoefficientsBinSizeBC (void *pvObject) |
| Get the size of a bin of the distribution of coefficients of correlation. | |
| CORRELATIONLIB_API void * | CreateCrossCorrelationComputerBB (int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes cross-correlation on a pair of binary - binary signals. | |
| CORRELATIONLIB_API void | FreeCrossCorrelationComputerBB (void *pvObject) |
| Destructor for cross-correlation objects on binary-binary input pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeCrossCorrelationBB (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, int *piaTimeStampsB, int piNrTimeStampsInB, int pbNormalizeCorrelogram) |
| Compute the cross-correlation of two vectors of time stamps. | |
| CORRELATIONLIB_API void | ComputeWindowedCrossCorrelationPerTrialBB (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, int *piaTimeStampsB, int piNrTimeStampsInB, int piFromOffsetInTrial, int piToOffsetInTrial, int pbNormalizeCorrelogram) |
| Compute the cross-correlation of two vectors of time stamps, on a partial window of the trial. ONLY ACCEPTS ONE TRIAL!!! | |
| CORRELATIONLIB_API float * | GetCrossCorrelogramBB (void *pvObject) |
| Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API int | CrossCorrelationModifyCorrelationWindowBB (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyTrialLengthBB (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyAllParametersBB (void *pvObject, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | CrossCorrelationGetCorrelationWindowBB (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | CrossCorrelationGetTrialLengthBB (void *pvObject) |
| Get the trial length in original sampling units. | |
| CORRELATIONLIB_API void * | CreateCrossCorrelationComputerCC (int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes cross-correlation on a pair of continuous - continuous signals. | |
| CORRELATIONLIB_API void | FreeCrossCorrelationComputerCC (void *pvObject) |
| Destructor for cross-correlation objects on continuous-continuous input pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeCrossCorrelationCC (void *pvObject, float *pfaSamplesA, int piNrSamplesInA, float *pfaSamplesB, int piNrSamplesInB, int piNormalizationFlag) |
| Compute the cross-correlation of two vectors of samples. | |
| CORRELATIONLIB_API void | ComputeWindowedCrossCorrelationPerTrialCC (void *pvObject, float *pfaSamplesA, int piNrSamplesInA, float *pfaSamplesB, int piNrSamplesInB, int piFromOffsetInTrial, int piToOffsetInTrial, int piNormalizationFlag) |
| Compute the cross-correlation of two digitized continuous signals, on a partial window of the trial. | |
| CORRELATIONLIB_API float * | GetCrossCorrelogramCC (void *pvObject) |
| Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API int | CrossCorrelationModifyCorrelationWindowCC (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyTrialLengthCC (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyAllParametersCC (void *pvObject, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | CrossCorrelationGetCorrelationWindowCC (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | CrossCorrelationGetTrialLengthCC (void *pvObject) |
| Get the trial length in original sampling units. | |
| CORRELATIONLIB_API void * | CreateCrossCorrelationComputerBC (int piCorrelationWindow, int piTrialLength, int &piIsError) |
| Creates an object that computes cross-correlation on a pair of binary - continuous signals. | |
| CORRELATIONLIB_API void | FreeCrossCorrelationComputerBC (void *pvObject) |
| Destructor for cross-correlation objects on binary-continuous input pairs; always call this to cleanup your data space. | |
| CORRELATIONLIB_API void | ComputeCrossCorrelationBC (void *pvObject, int *piaTimeStampsA, int piNrTimeStampsInA, float *pfaSamplesB, int piNrSamplesInB, int pbNormalizeCorrelogram) |
| Compute the cross-correlation of one binary signal with one continuos signal. | |
| CORRELATIONLIB_API float * | GetCrossCorrelogramBC (void *pvObject) |
| Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!! | |
| CORRELATIONLIB_API int | CrossCorrelationModifyCorrelationWindowBC (void *pvObject, int piNewCorrelationWindow) |
| Set the size of the correlation window; for example for a window of -100..+100 pass 100 as a parameter. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyTrialLengthBC (void *pvObject, int piNewTrialLength) |
| Set the length of the trial in original sampling units. | |
| CORRELATIONLIB_API int | CrossCorrelationModifyAllParametersBC (void *pvObject, int piNewCorrelationWindow, int piNewTrialLength) |
| Sets all parameters at once. | |
| CORRELATIONLIB_API int | CrossCorrelationGetCorrelationWindowBC (void *pvObject) |
| Get the size of the correlation window. | |
| CORRELATIONLIB_API int | CrossCorrelationGetTrialLengthBC (void *pvObject) |
| Get the trial length in original sampling units. | |
| #define ERR_NULL_OBJECT -5 |
| CORRELATIONLIB_API void ComputeCrossCorrelationBB | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| int * | piaTimeStampsB, | ||
| int | piNrTimeStampsInB, | ||
| int | pbNormalizeCorrelogram | ||
| ) |
Compute the cross-correlation of two vectors of time stamps.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| piaTimeStampsA | - The vector holding the time stamps of the first binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| piaTimeStampsB | - The vector holding the time stamps of the second binary variable |
| piNrTimeStampsInB | - Number of time stamps in the second vector |
| pbNormalizeCorrelogram | - Set to 1 to normalize the correlogram; normalization is made by dividing the correlogram to the number of time stamps in the first buffer (rate-normalized correlogram) |
| CORRELATIONLIB_API void ComputeCrossCorrelationBC | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | pbNormalizeCorrelogram | ||
| ) |
Compute the cross-correlation of one binary signal with one continuos signal.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| piaTimeStampsA | - The vector holding the time stamps of the binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| pfaSamplesB | - The vector holding samples of the continuous signal |
| piNrSamplesInB | - Number of samples in the second vector |
| pbNormalizeCorrelogram | - Set to 1 to normalize the correlogram; ; normalization is made by dividing to the number of time stamps used to compute the correlogram |
| CORRELATIONLIB_API void ComputeCrossCorrelationCC | ( | void * | pvObject, |
| float * | pfaSamplesA, | ||
| int | piNrSamplesInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | piNormalizationFlag | ||
| ) |
Compute the cross-correlation of two vectors of samples.
If the number of samples passed is larger than the size of one trial, then the signals are divided into trials and the results are eventually averaged over trials
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| pfaSamplesA | - The vector holding the samples of the first signal |
| piNrSamplesInA | - Number of samples in the first vector |
| pfaSamplesB | - The vector holding the samples of the second signal |
| piNrSamplesInB | - Number of samples in the second vector |
| piNormalizationFlag | - Flag that decides how to normalize the correlogram: 0 - unnormalized, biased; 1 - normalized, biased; 2 - unnormalized, unbiased; 3 - normalized, unbiased; normalization removes the dependency on the length of the signals and gives values in cross-product units of the continuous variables; unbias removes the dependency on the finite length of signal windows |
| CORRELATIONLIB_API void ComputeScaledCorrelationBB | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| int * | piaTimeStampsB, | ||
| int | piNrTimeStampsInB, | ||
| int | pbUseFisherZTransform | ||
| ) |
Compute the scaled correlation of two vectors of time stamps.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piaTimeStampsA | - The vector holding the time stamps of the first binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| piaTimeStampsB | - The vector holding the time stamps of the second binary variable |
| piNrTimeStampsInB | - Number of time stamps in the second vector |
| pbUseFisherZTransform | - Set to 1 to use the Fisher Z transform to average the coefficients of correlation; set to 0 for normal computation; |
| CORRELATIONLIB_API void ComputeScaledCorrelationBC | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | pbUseFisherZTransform | ||
| ) |
Compute the scaled correlation of one binary signal with one continuos signal.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piaTimeStampsA | - The vector holding the time stamps of the binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| pfaSamplesB | - The vector holding samples of the continuous signal |
| piNrSamplesInB | - Number of samples in the second vector |
| pbUseFisherZTransform | - Set to 1 to use the Fisher Z transform to average the coefficients of correlation; set to 0 for normal computation; |
| CORRELATIONLIB_API void ComputeScaledCorrelationCC | ( | void * | pvObject, |
| float * | pfaSamplesA, | ||
| int | piNrSamplesInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | pbUseFisherZTransform | ||
| ) |
Compute the scaled correlation of two digitized continuous signals.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| pfaSamplesA | - The vector holding the first signal's input samples |
| piNrSamplesInA | - Number of samples in the first vector |
| pfaSamplesB | - The vector holding the second signal's input samples |
| piNrSamplesInB | - Number of samples in the second vector |
| pbUseFisherZTransform | - Set to 1 to use the Fisher Z transform to average the coefficients of correlation; set to 0 for normal computation; |
| CORRELATIONLIB_API void ComputeWindowedCrossCorrelationPerTrialBB | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| int * | piaTimeStampsB, | ||
| int | piNrTimeStampsInB, | ||
| int | piFromOffsetInTrial, | ||
| int | piToOffsetInTrial, | ||
| int | pbNormalizeCorrelogram | ||
| ) |
Compute the cross-correlation of two vectors of time stamps, on a partial window of the trial. ONLY ACCEPTS ONE TRIAL!!!
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| piaTimeStampsA | - The vector holding the time stamps of the first binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| piaTimeStampsB | - The vector holding the time stamps of the second binary variable |
| piNrTimeStampsInB | - Number of time stamps in the second vector |
| piFromOffsetInTrial | - The start offset in the trial where the desired window starts (time stamp) |
| piToOffsetInTrial | - The end offset in the trial where the desired window stops (time stamp) |
| pbNormalizeCorrelogram | - Set to 1 to normalize the correlogram |
| CORRELATIONLIB_API void ComputeWindowedCrossCorrelationPerTrialCC | ( | void * | pvObject, |
| float * | pfaSamplesA, | ||
| int | piNrSamplesInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | piFromOffsetInTrial, | ||
| int | piToOffsetInTrial, | ||
| int | piNormalizationFlag | ||
| ) |
Compute the cross-correlation of two digitized continuous signals, on a partial window of the trial.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| pfaSamplesA | - The vector holding the samples of the first signal |
| piNrSamplesInA | - Number of samples in the first vector |
| pfaSamplesB | - The vector holding the samples of the second signal |
| piNrSamplesInB | - Number of samples in the second vector |
| piFromOffsetInTrial | - The start offset in the trial where the desired window starts |
| piToOffsetInTrial | - The end offset in the trial where the desired window stops |
| piNormalizationFlag | - Flag that decides how to normalize the correlogram: 0 - unnormalized, biased; 1 - normalized, biased; 2 - unnormalized, unbiased; 3 - normalized, unbiased; normalization removes the dependency on the length of the signals and gives values in cross-product units of the continuous variables; unbias removes the dependency on the finite length of signal windows |
| CORRELATIONLIB_API void ComputeWindowedScaledCorrelationPerTrialBB | ( | void * | pvObject, |
| int * | piaTimeStampsA, | ||
| int | piNrTimeStampsInA, | ||
| int * | piaTimeStampsB, | ||
| int | piNrTimeStampsInB, | ||
| int | piFromOffsetInTrial, | ||
| int | piToOffsetInTrial, | ||
| int | pbUseFisherZTransform | ||
| ) |
Compute the scaled correlation of two vectors of time stamps, on a partial window of the trial; ONLY ACCEPTS ONE TRIAL!!!
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piaTimeStampsA | - The vector holding the time stamps of the first binary variable |
| piNrTimeStampsInA | - Number of time stamps in the first vector |
| piaTimeStampsB | - The vector holding the time stamps of the second binary variable |
| piNrTimeStampsInB | - Number of time stamps in the second vector |
| piFromOffsetInTrial | - The start offset in the trial where the desired window starts (time stamp) |
| piToOffsetInTrial | - The end offset in the trial where the desired window stops (time stamp) |
| pbUseFisherZTransform | - Set to 1 to use the Fisher Z transform to average the coefficients of correlation; set to 0 for normal computation |
| CORRELATIONLIB_API void ComputeWindowedScaledCorrelationPerTrialCC | ( | void * | pvObject, |
| float * | pfaSamplesA, | ||
| int | piNrSamplesInA, | ||
| float * | pfaSamplesB, | ||
| int | piNrSamplesInB, | ||
| int | piFromOffsetInTrial, | ||
| int | piToOffsetInTrial, | ||
| int | pbUseFisherZTransform | ||
| ) |
Compute the scaled correlation of two digitized continuous signals, on a partial window of the trial; ONLY ACCEPTS ONE TRIAL!!!
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| pfaSamplesA | - The vector holding the first signal's input samples |
| piNrSamplesInA | - Number of samples in the first vector |
| pfaSamplesB | - The vector holding the second signal's input samples |
| piNrSamplesInB | - Number of samples in the second vector |
| piFromOffsetInTrial | - The start offset in the trial where the desired window starts |
| piToOffsetInTrial | - The end offset in the trial where the desired window stops |
| pbUseFisherZTransform | - Set to 1 to use the Fisher Z transform to average the coefficients of correlation; set to 0 for normal computation; |
| CORRELATIONLIB_API void* CreateCrossCorrelationComputerBB | ( | int | piCorrelationWindow, |
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes cross-correlation on a pair of binary - binary signals.
| piCorrelationWindow | - The size of the cross-correlation window (eg. 80 for a cross-correlation with laggs from -80 to +80); use the same units as the sampling of your samples |
| piTrialLength | - The size of the trial in units of your samples |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetCrossCorrelogramBB() function will return NULL |
| CORRELATIONLIB_API void* CreateCrossCorrelationComputerBC | ( | int | piCorrelationWindow, |
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes cross-correlation on a pair of binary - continuous signals.
| piCorrelationWindow | - The size of the cross-correlation window (eg. 80 for a cross-correlation with lags of -80..+80); use the same units as the sampling units |
| piTrialLength | - The size of the trial in original sampling units |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetCrossCorrelogram() function will return NULL |
| CORRELATIONLIB_API void* CreateCrossCorrelationComputerCC | ( | int | piCorrelationWindow, |
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes cross-correlation on a pair of continuous - continuous signals.
| piCorrelationWindow | - The size of the cross-correlation window (eg. 80 for a cross-correlation with laggs from -80 to +80); use the same units as the sampling of your samples |
| piTrialLength | - The size of the trial in units of your samples |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetCrossCorrelogram() function will return NULL |
| CORRELATIONLIB_API void* CreateScaledCorrelationComputerBB | ( | int | piScaleWindow, |
| int | piCorrelationWindow, | ||
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes scaled correlation on a pair of binary - binary signals.
| piScaleWindow | - The scale on which you compute the scaled correlation; use the same units as the sampling unit of your time stamps |
| piCorrelationWindow | - The size of the cross correlation window (eg. 80 for a cross correlation with lags of -80..+80); use the same units as the sampling of your time stamps |
| piTrialLength | - The size of the trial in units of your time stamps |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetScaledCorrelogram() function will return NULL |
| CORRELATIONLIB_API void* CreateScaledCorrelationComputerBC | ( | int | piScaleWindow, |
| int | piCorrelationWindow, | ||
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes scaled correlation on a pair of binary - continuous signals.
| piScaleWindow | - The scale on which you compute the scaled correlation; use the same units as the sampling unit of your time stamps |
| piCorrelationWindow | - The size of the cross-correlation window (eg. 80 for a cross-correlation with lags of -80..+80); use again the same units as the sampling of your time stamps |
| piTrialLength | - The size of the trial in original sampling units |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetScaledCorrelogram() function will return NULL |
| CORRELATIONLIB_API void* CreateScaledCorrelationComputerCC | ( | int | piScaleWindow, |
| int | piCorrelationWindow, | ||
| int | piTrialLength, | ||
| int & | piIsError | ||
| ) |
Creates an object that computes scaled correlation on a pair of continuous - continuous signals.
| piScaleWindow | - The scale on which you compute the scaled correlation; use the same units as the sampling unit of your signals |
| piCorrelationWindow | - The size of the cross correlation window (eg. 80 for a cross correlation with lags of -80..+80); use again the same units as the sampling of your signals |
| piTrialLength | - The size of the trial in sampling units of your signals |
| piIsError | - A return parameter, set to 0 on success. It is set to -1 by the constructor if there is a mismatch of window sizes and the GetScaledCorrelogram() function will return NULL |
| CORRELATIONLIB_API int CrossCorrelationGetCorrelationWindowBB | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| CORRELATIONLIB_API int CrossCorrelationGetCorrelationWindowBC | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| CORRELATIONLIB_API int CrossCorrelationGetCorrelationWindowCC | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| CORRELATIONLIB_API int CrossCorrelationGetTrialLengthBB | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| CORRELATIONLIB_API int CrossCorrelationGetTrialLengthBC | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| CORRELATIONLIB_API int CrossCorrelationGetTrialLengthCC | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| CORRELATIONLIB_API int CrossCorrelationModifyAllParametersBB | ( | void * | pvObject, |
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| piNewCorrelationWindow | - The new correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int CrossCorrelationModifyAllParametersBC | ( | void * | pvObject, |
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| piNewCorrelationWindow | - The new correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int CrossCorrelationModifyAllParametersCC | ( | void * | pvObject, |
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| piNewCorrelationWindow | - The new correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int CrossCorrelationModifyCorrelationWindowBB | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| piNewCorrelationWindow | - The new correlation window |
| CORRELATIONLIB_API int CrossCorrelationModifyCorrelationWindowBC | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; for example for a window of -100..+100 pass 100 as a parameter.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| piNewCorrelationWindow | - Specifies the new correlation window |
| CORRELATIONLIB_API int CrossCorrelationModifyCorrelationWindowCC | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| piNewCorrelationWindow | - Specifies the new correlation window |
| CORRELATIONLIB_API int CrossCorrelationModifyTrialLengthBB | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int CrossCorrelationModifyTrialLengthBC | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int CrossCorrelationModifyTrialLengthCC | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| piNewTrialLength | - The new length of the trial |
| BOOL APIENTRY DllMain | ( | HANDLE | hModule, |
| DWORD | ul_reason_for_call, | ||
| LPVOID | lpReserved | ||
| ) |
Entry into the Dll space.
| CORRELATIONLIB_API void FreeCrossCorrelationComputerBB | ( | void * | pvObject | ) |
Destructor for cross-correlation objects on binary-binary input pairs; always call this to cleanup your data space.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| CORRELATIONLIB_API void FreeCrossCorrelationComputerBC | ( | void * | pvObject | ) |
Destructor for cross-correlation objects on binary-continuous input pairs; always call this to cleanup your data space.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| CORRELATIONLIB_API void FreeCrossCorrelationComputerCC | ( | void * | pvObject | ) |
Destructor for cross-correlation objects on continuous-continuous input pairs; always call this to cleanup your data space.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| CORRELATIONLIB_API void FreeScaledCorrelationComputerBB | ( | void * | pvObject | ) |
Destructor for scaled correlation objects on binary-binary pairs; always call this to cleanup your data space.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API void FreeScaledCorrelationComputerBC | ( | void * | pvObject | ) |
Destructor for scaled correlation objects on binary-continuous input pairs; always call this to cleanup your data space.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API void FreeScaledCorrelationComputerCC | ( | void * | pvObject | ) |
Destructor for scaled correlation objects on continuous-continuous input pairs; always call this to cleanup your data space.
| pvObject | - pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API float* GetCrossCorrelogramBB | ( | void * | pvObject | ) |
Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the cross correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow.
| pvObject | - Pointer to the object that computes the cross correlation; please instantiate first using the CreateCrossCorrelationComputerBB function |
| CORRELATIONLIB_API float* GetCrossCorrelogramBC | ( | void * | pvObject | ) |
Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the cross correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow.
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerBC function |
| CORRELATIONLIB_API float* GetCrossCorrelogramCC | ( | void * | pvObject | ) |
Returns the buffer with the computed cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the cross-correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow;
| pvObject | - Pointer to the object that computes the cross-correlation; please instantiate first using the CreateCrossCorrelationComputerCC function |
| CORRELATIONLIB_API int* GetDistributionOfCorrelationCoefficientsBB | ( | void * | pvObject, |
| int & | piNumberOfBins, | ||
| float & | pfBinSize | ||
| ) |
Returns the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piNumberOfBins | - The number of bins in the distribution (output parameter) |
| pfBinSize | - The size of one bin of the distribution (output parameter) |
| CORRELATIONLIB_API int* GetDistributionOfCorrelationCoefficientsBC | ( | void * | pvObject, |
| int & | piNumberOfBins, | ||
| float & | pfBinSize | ||
| ) |
Returns the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piNumberOfBins | - The number of bins in the distribution (output parameter) |
| pfBinSize | - The size of one bin of the distribution (output parameter) |
| CORRELATIONLIB_API int GetDistributionOfCorrelationCoefficientsBinNrBB | ( | void * | pvObject | ) |
Get the number of bins of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API int GetDistributionOfCorrelationCoefficientsBinNrBC | ( | void * | pvObject | ) |
Get the number of bins of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API int GetDistributionOfCorrelationCoefficientsBinNrCC | ( | void * | pvObject | ) |
Get the number of bins of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API float GetDistributionOfCorrelationCoefficientsBinSizeBB | ( | void * | pvObject | ) |
Get the size of a bin of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API float GetDistributionOfCorrelationCoefficientsBinSizeBC | ( | void * | pvObject | ) |
Get the size of a bin of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API float GetDistributionOfCorrelationCoefficientsBinSizeCC | ( | void * | pvObject | ) |
Get the size of a bin of the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API int* GetDistributionOfCorrelationCoefficientsCC | ( | void * | pvObject, |
| int & | piNumberOfBins, | ||
| float & | pfBinSize | ||
| ) |
Returns the distribution of coefficients of correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| piNumberOfBins | - The number of bins in the distribution (output parameter) |
| pfBinSize | - The size of one bin of the distribution (output parameter) |
| CORRELATIONLIB_API int* GetFiCoefficientCountsBB | ( | void * | pvObject | ) |
Returns how many Fi coefficients of correlation have been averaged for each bin of the scaled cross correlogram.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API float* GetFiCoefficientSumsBB | ( | void * | pvObject | ) |
Returns the sum of valid Fi coefficients of correlation for each bin of the correlogram.
The size of the buffer is (2*iCorrelationWindow+1), and the sum of coefficients for lag 0 is at position iCorrelationWindow. Use this function to get the sum of all valid coefficients that were used to compute the average correlation coefficient for each bin of the ScaledCrossCorrelogram: ScaledCrossCorrelogram[i] = FiCoefficientSums[i] / FiCoefficientCounts[i].
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API int* GetPBsCoefficientCountsBC | ( | void * | pvObject | ) |
Returns how many Point Biserial coefficients of correlation have been averaged for each bin of the scaled cross correlogram.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API float* GetPBsCoefficientSumsBC | ( | void * | pvObject | ) |
Returns the sum of valid Point Biserial coefficients of correlation for each bin of the correlogram.
The size of the buffer is (2*iCorrelationWindow+1), and the sum of coefficients for lag 0 is at position iCorrelationWindow. Use this function to get the sum of all valid coefficients that were used to compute the average correlation coefficient for each bin of the ScaledCrossCorrelogram: ScaledCrossCorrelogram[i] = PBsCoefficientSums[i] / PBsCoefficientCounts[i].
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API int* GetPearsonCoefficientCountsCC | ( | void * | pvObject | ) |
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API float* GetPearsonCoefficientSumsCC | ( | void * | pvObject | ) |
Returns the sum of valid Pearson coefficients of correlation for each bin of the correlogram.
The size of the buffer is (2*iCorrelationWindow+1), and the sum of coefficients for lag 0 is at position iCorrelationWindow. Use this function to get the sum of all valid coefficients that were used to compute the average correlation coefficient for each bin of the ScaledCrossCorrelogram: ScaledCrossCorrelogram[i] = PearsonCoefficientSums[i] / PearsonCoefficientCounts[i].
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API float* GetScaledCrossCorrelogramBB | ( | void * | pvObject | ) |
Returns the buffer with the computed scaled-cross-correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the scaled correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow;
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API float* GetScaledCrossCorrelogramBC | ( | void * | pvObject | ) |
Returns the buffer with the computed scaled correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the scaled correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow;
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API float* GetScaledCrossCorrelogramCC | ( | void * | pvObject | ) |
Returns the buffer with the computed scaled correlogram; returns NULL if there was an error; please check the buffer for NULL before using it!!
The size of the scaled correlogram buffer is (2*iCorrelationWindow+1), and element with lag 0 is at position iCorrelationWindow;
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API int ScaledCorrelationGetCorrelationWindowBB | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API int ScaledCorrelationGetCorrelationWindowBC | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API int ScaledCorrelationGetCorrelationWindowCC | ( | void * | pvObject | ) |
Get the size of the correlation window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API int ScaledCorrelationGetScaleWindowBB | ( | void * | pvObject | ) |
Get the size of the current scale window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API int ScaledCorrelationGetScaleWindowBC | ( | void * | pvObject | ) |
Get the size of the current scale window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API int ScaledCorrelationGetScaleWindowCC | ( | void * | pvObject | ) |
Get the size of the current scale window.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API int ScaledCorrelationGetTrialLengthBB | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| CORRELATIONLIB_API int ScaledCorrelationGetTrialLengthBC | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| CORRELATIONLIB_API int ScaledCorrelationGetTrialLengthCC | ( | void * | pvObject | ) |
Get the trial length in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| CORRELATIONLIB_API int ScaledCorrelationModifyAllParametersBB | ( | void * | pvObject, |
| int | piNewScale, | ||
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piNewScale | - The new size of the scale segment |
| piNewCorrelationWindow | - The new size of the correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int ScaledCorrelationModifyAllParametersBC | ( | void * | pvObject, |
| int | piNewScale, | ||
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piNewScale | - The new size of the scale segment |
| piNewCorrelationWindow | - The new size of the correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int ScaledCorrelationModifyAllParametersCC | ( | void * | pvObject, |
| int | piNewScale, | ||
| int | piNewCorrelationWindow, | ||
| int | piNewTrialLength | ||
| ) |
Sets all parameters at once.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| piNewScale | - The new size of the scale segment |
| piNewCorrelationWindow | - The new size of the correlation window |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int ScaledCorrelationModifyCorrelationWindowBB | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piNewCorrelationWindow | - The new size of the correlation window |
| CORRELATIONLIB_API int ScaledCorrelationModifyCorrelationWindowBC | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter;.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piNewCorrelationWindow | - The new size of the correlation window |
| CORRELATIONLIB_API int ScaledCorrelationModifyCorrelationWindowCC | ( | void * | pvObject, |
| int | piNewCorrelationWindow | ||
| ) |
Set the size of the correlation window; the parameter specifies the correlation window; for example for a window of -100..+100 pass 100 as a parameter.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| piNewCorrelationWindow | - The new size of the correlation window |
| CORRELATIONLIB_API int ScaledCorrelationModifyScaleWindowBB | ( | void * | pvObject, |
| int | piNewScale | ||
| ) |
Changes the scale window for the scaled correlation;.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piNewScale | - The new size of the scale segment |
| CORRELATIONLIB_API int ScaledCorrelationModifyScaleWindowBC | ( | void * | pvObject, |
| int | piNewScale | ||
| ) |
Changes the scale window for the scaled correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piNewScale | - The new size of the scale segment |
| CORRELATIONLIB_API int ScaledCorrelationModifyScaleWindowCC | ( | void * | pvObject, |
| int | piNewScale | ||
| ) |
Changes the scale segment size for the scaled correlation.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| piNewScale | - The new size of the scale segment |
| CORRELATIONLIB_API int ScaledCorrelationModifyTrialLengthBB | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBB function |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int ScaledCorrelationModifyTrialLengthBC | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerBC function |
| piNewTrialLength | - The new length of the trial |
| CORRELATIONLIB_API int ScaledCorrelationModifyTrialLengthCC | ( | void * | pvObject, |
| int | piNewTrialLength | ||
| ) |
Set the length of the trial in original sampling units.
| pvObject | - Pointer to the object that computes the scaled correlation; please instantiate first using the CreateScaledCorrelationComputerCC function |
| piNewTrialLength | - The new length of the trial |