Message-ID: <fca0140a7c6e0ddafffbc1519f87528d@earthlink.net>
Date: 2005-10-03T21:31:01Z
From: Eric Pante
Subject: sampling vectors
Hello Listers,
I am trying to sample a vector to create a new one of sample length,
witha sum equal to the sum of the initial vector:
initial = 10, 30, 10 (sum=50)
sample example = 5, 35, 10 (sum=50) or 25, 15, 10 (sum=50), etc ...
My problem is to control the sum, so it stays constant.
Any suggestions would be very helpful !
Thank you in advance,
Eric