rescale ( u -- v )


Vocabulary
math.statistics

Inputs and outputs
ua sequence
va sequence


Word description
Returns u rescaled to run from 0 to 1 over the range min to max.

Definition
USING: kernel math math.vectors ;

IN: math.statistics

: rescale ( u -- v ) dup minmax over - [ v-n ] [ v/n ] bi* ;