array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.trader-correl.php', 1 => 'trader_correl', ), 'up' => array ( 0 => 'ref.trader.php', 1 => 'Trader 函数', ), 'prev' => array ( 0 => 'function.trader-cmo.php', 1 => 'trader_cmo', ), 'next' => array ( 0 => 'function.trader-cos.php', 1 => 'trader_cos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/trader/functions/trader-correl.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL trader >= 0.2.0)
trader_correl — Pearson's Correlation Coefficient (r)
real0
浮点数数组。
real1
浮点数数组。
timePeriod
Number of period. Valid range from 2 to 100000.
Returns an array with calculated data or false on failure.