php8.5
Home/ Manual/ trader / functions/ trader_correl

trader_correl

PHP function Edit on GitHub ✎

(PECL trader >= 0.2.0)

Pearson's Correlation Coefficient (r)

Description

trader_correl(array $real0, array $real1, [int $timePeriod]): array

Parameters

real0

Real

real1

Real

timePeriod

Period

Return Values

Returns an array with calculated data or false on failure.

Source: reference/trader/functions/trader-correl.xml · from the official PHP manual (php/doc-en)