Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: mark_bluemel@xxxxxxxxx
- Date: Fri, 29 Jun 2007 02:48:07 -0700
On 29 Jun, 10:20, Verbal Kint <TENSOAP...@xxxxxxxxx> wrote:
:) I understand what you mean. Maybe I didnt express myself clear
enough. I wanted to use to following method as mentioned in FAQ:
If you are replying to my posting, it would be helpful and polite to
quote at least the relevant parts of it.
....
double gaussrand()
{
return X;
}
Now I wonder, whether I can multiply the standard deviation of e.g.
0.5 with X or with which variable (v1, v2, etc.) I need to multiply
it?
I said before :-
"The numbers generated by these methods have a specific distribution -
right?
To change that distribution, you can simply them (the numbers the
methods generate) by the required standard deviation, and add the
required mean - can't you?"
What about that didn't you understand?
Let's try another approach. The FAQ said
"These methods all generate numbers with mean 0 and standard deviation
1. (To adjust to some other distribution, multiply by the standard
deviation and add the mean.)"
This instruction must apply no matter which method you used to
generate your random number, so it must not relate in any way to the
internal implementation of that random number generator - right?
So the only thing to which we can apply the instructions "multiply by
the standard deviation and add the mean" is the output of the random
number generator. Is that any clearer?
.
- Follow-Ups:
- Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: Clever Monkey
- Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: Verbal Kint
- Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- References:
- change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: Verbal Kint
- Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: mark_bluemel
- Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- From: Verbal Kint
- change standard deviation of normal or Gaussian distribution (faq 13.20)
- Prev by Date: Re: The machine epsilon
- Next by Date: Re: when to use ; and when to use ,
- Previous by thread: Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- Next by thread: Re: change standard deviation of normal or Gaussian distribution (faq 13.20)
- Index(es):
Relevant Pages
|