in reply to Re: number normalization
in thread number normalization

can anyone provide a sample equation for a non-linear equation example? i.e. log, exponential, etc. ... (anything else you can think of). i would like to emphasize the numbers that are larger vs. the numbers that are smaller.

Replies are listed 'Best First'.
Re: Re: Re: number normalization
by fglock (Vicar) on Aug 10, 2003 at 12:27 UTC
    perl -e ' for( 0.03, 0.4, 5, 10 ) { print int(10**$_), "\n" } ' 1 2 100000 10000000000
      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!!