array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stats-stat-powersum.php', 1 => 'stats_stat_powersum', 2 => 'Returns the power sum of a vector', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic 函数', ), 'prev' => array ( 0 => 'function.stats-stat-percentile.php', 1 => 'stats_stat_percentile', ), 'next' => array ( 0 => 'function.stats-variance.php', 1 => 'stats_variance', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-stat-powersum.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stats_stat_powersum

(PECL stats >= 1.0.0)

stats_stat_powersumReturns the power sum of a vector

说明

stats_stat_powersum(array $arr, float $power): float

Returns the sum of the power-th power of a vector represented as an array arr.

参数

arr

The input array

power

The power

返回值

Returns the power sum of the input array.