Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Statistics » PearsonCorrelation

PearsonCorrelation


Computes Pearson product-moment correlation coefficient. The array must be not empty.

Name Type Description
inValues1 RealArray Array of values of the first variable
inValues2 RealArray Array of values of the second variable
outCorrelation Real Computed correlation coefficient between two variables

Hints

  • Make sure that the standard deviation of both input arrays is non-zero.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Cannot compute the value of PearsonCorrelation. The standard deviation of some set of input values is equal to zero.
DomainError Empty array on input in PearsonCorrelation.
DomainError Inconsistent size of arrays in PearsonCorrelation.

Complexity Level

This filter is available on Basic Complexity Level.