in reply to number normalization

Normalization is just the proportional adjusting of a set of numbers to another set, right? So if you have a set of numbers between $l1 (low) and $h1 (high), and want to normalize them from between $l2 (low) and $h2 (high), wouldn't you just do:
my @normalized = map { $l2 + ($_ - $l1) * ($h2 - $l2) / ($h1 - $l1) } @data;

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;