array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stats-stat-innerproduct.php', 1 => 'stats_stat_innerproduct', 2 => 'Returns the inner product of two vectors', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic 函数', ), 'prev' => array ( 0 => 'function.stats-stat-independent-t.php', 1 => 'stats_stat_independent_t', ), 'next' => array ( 0 => 'function.stats-stat-paired-t.php', 1 => 'stats_stat_paired_t', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-stat-innerproduct.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stats_stat_innerproduct

(PECL stats >= 1.0.0)

stats_stat_innerproductReturns the inner product of two vectors

说明

function stats_stat_innerproduct(array $arr1, array $arr2): float

Returns the inner product of arr1 and arr2.

参数

arr1
The first array
arr2
The second array

返回值

Returns the inner product of arr1 and arr2, or false on failure.