power-mean ( seq p -- x )


Vocabulary
math.statistics

Definition
USING: kernel math math.functions sequences ;

IN: math.statistics

: power-mean ( seq p -- x )
[ [ ^ ] curry map-sum ] [ [ length / ] [ recip ^ ] bi* ]
2bi ; inline