Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: [OT] Normalizing the return result of an exponential formula

by clinton (Priest)
on Apr 14, 2011 at 16:34 UTC ( #899475=note: print w/ replies, xml ) Need Help??


in reply to [OT] Normalizing the return result of an exponential formula

I suppose I could do something like:

my $max = 10_000; $distance -= $radius; $distance = 0 if $distance < 0; $distance *= $max/($max-$radius)
then apply the formula to the new "stretched" distance.

Any more elegant way of handling it? (especially one that incorporates dropoff?)


Comment on Re: [OT] Normalizing the return result of an exponential formula
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://899475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-03 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls