Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://899475]
[choroba]: LanX good indeed
[choroba]: very cloudy here, I planned to make some picrures, but now I don't think so
[LanX]: do you like it better now?
[choroba]: Well, getting used to it
[LanX]: several people told me they like saigon. ..
[choroba]: well, beer is good here, surprisingly
[choroba]: also, I discovered several vegan/vegetarian restaurants, so I can avoid meat
[LanX]: ha ha ... happy Czech :)
[choroba]: been to the War Remnants Museum, too. Quite a brutal experience

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-02-26 04:33 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (371 votes). Check out past polls.