comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » "bootstrap" statistics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: "bootstrap" statistics [message #30933 is a reply to message #30849] Sat, 25 May 2002 12:10 Go to previous messageGo to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
Med Bennett <mwbennett@windra.com> wrote:
> The way to do this without using the same value more than once is to use the sort
> command. First, generate m uniform random numbers, then find the sort indices of
> the random numbers. For example, if you want to randomly pick 50 out of 100
> values:

> IDL> junk = randomu(seed,100)
> IDL> s=sort(junk)
> IDL> print,s[0:49]

Ah. Yes. Clever. (I have a feeling thats what one other post was trying to tell
me but wasn't so clear).

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.nerc-bas.ac.uk/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Job offer for IDL Programmers near Frankfurt/Germany
Next Topic: peculiar things with Z-device

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:15:55 PDT 2025

Total time taken to generate the page: 0.00512 seconds