in reply to [OT] Normalizing the return result of an exponential formula
I would like to change the formula to make the upper limit of the range dependent only on importance and not on radius.
Why not just omit the radius from the equation?
That way, the 'boost' become dependant upon just the distance from the perimeter of the circle regardless of the circles size:
sub x{ my( $i, $r, $d, $o ) = @_; return $i / $d**$o; } print x( 100, 0, $_, 0.5 ) for map 2**$_, 4..13;; 25 17.6776695296637 12.5 8.83883476483184 6.25 4.41941738241592 3.125 2.20970869120796 1.5625 1.10485434560398 print x( 100, 1000, $_, 0.5 ) for map 2**$_, 4..13;; 25 17.6776695296637 12.5 8.83883476483184 6.25 4.41941738241592 3.125 2.20970869120796 1.5625 1.10485434560398
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [OT] Normalizing the return result of an exponential formula
by clinton (Priest) on Apr 14, 2011 at 16:55 UTC | |
by BrowserUk (Patriarch) on Apr 14, 2011 at 17:20 UTC | |
by clinton (Priest) on Apr 14, 2011 at 17:38 UTC |
In Section
Seekers of Perl Wisdom