LibXtract 1.6.0
xtract_multivariate.h
Go to the documentation of this file.
1/* Part of LibXtract
2 *
3 * SPDX-FileCopyrightText: 2026 Jamie Bullock
4 * SPDX-License-Identifier: Zlib
5 */
6
8
9#ifndef XTRACT_MULTIVARIATE_H
10#define XTRACT_MULTIVARIATE_H
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
24
32 int xtract_cross_correlation(const double *data, const int N, const void *argv, double *result);
33
41 int xtract_cross_correlation_lag(const double *data, const int N, const void *argv, double *result);
42
50 int xtract_pearson_correlation(const double *data, const int N, const void *argv, double *result);
51
59 int xtract_covariance_matrix(const double *data, const int N, const void *argv, double *result);
60
68 int xtract_correlation_matrix(const double *data, const int N, const void *argv, double *result);
69
77 int xtract_average_correlation(const double *data, const int N, const void *argv, double *result);
78
86 int xtract_principal_variances(const double *data, const int N, const void *argv, double *result);
87
99 int xtract_coherence(const double *data, const int N, const void *argv, double *result);
100
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
int xtract_covariance_matrix(const double *data, const int N, const void *argv, double *result)
Extract the covariance matrix of a set of series.
int xtract_average_correlation(const double *data, const int N, const void *argv, double *result)
Extract the average correlation of a set of series: the mean of the correlation coefficients of every...
int xtract_pearson_correlation(const double *data, const int N, const void *argv, double *result)
Extract the Pearson correlation coefficient of two series.
int xtract_principal_variances(const double *data, const int N, const void *argv, double *result)
Extract the variances of the principal components of a set of series: the eigenvalues of their covari...
int xtract_cross_correlation_lag(const double *data, const int N, const void *argv, double *result)
Extract the lag at which two series are most correlated: the lag of the largest correlation coefficie...
int xtract_cross_correlation(const double *data, const int N, const void *argv, double *result)
Extract the cross-correlation of two series at every lag.
int xtract_coherence(const double *data, const int N, const void *argv, double *result)
Extract the magnitude-squared coherence of two series: how far each frequency of one is a linear func...
int xtract_correlation_matrix(const double *data, const int N, const void *argv, double *result)
Extract the correlation matrix of a set of series from their covariance matrix.