in reply to Re: Re: number normalization
in thread number normalization

perl -e ' for( 0.03, 0.4, 5, 10 ) { print int(10**$_), "\n" } ' 1 2 100000 10000000000

Replies are listed 'Best First'.
Re: number normalization
by Anonymous Monk on Aug 10, 2003 at 13:30 UTC
    how about an equation that would normalize a number based on a non-linear equation similar to this equation ($hi and $lo are the $hi and $lo values in the dataset, and $HIVAL and $LOVAL are the output ranges for the normalized dataset)

    my $num = 1 + ($output{$key}-$lo)*($HIVAL-$LOVAL)/($hi-$lo);


    thanks for all your input!!