array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.stats-stat-powersum.php', 1 => 'stats_stat_powersum', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic İşlevleri', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL stats >= 1.0.0)
stats_stat_powersum — Returns the power sum of a vector
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.