z-score ( seq -- n ) (original) (raw)

z-score ( seq -- n )

Vocabulary
math.statistics

Inputs

seq a sequence

Outputs

n a number

Word description
Calculates the Z-Score for seq.

Definition

USING: kernel math.vectors ;

IN: math.statistics

: z-score ( seq -- n ) [ demean ] [ sample-std ] bi v/n ;