Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
random value given a standard normal distribution and mean?
#5
I figured out a nice way to translate the sample into a distribution from which you can draw random vars from.

Code:
for j = 1 to test_var_amount
test_var = 0
for i = 1 to sample_amount
test_var = test_var + sample_var(i)
next i
test_var = test_var / sample
next j
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Messages In This Thread
random value given a standard normal distribution and mean? - by Agamemnus - 03-08-2006, 07:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)