If I understand the question, you want to change the mean value of a random function to a given value, right? This is a linear transformation, and it is very simple to implement:
$val = old_random_function() - $old_avg + $new_avg;or, create a new function:
sub new_random_function { old_random_function() - $old_avg + $new_avg }In reply to Re: Skew normally distributed random numbers
by fglock
in thread Skew normally distributed random numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |