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

Home » Public Forums » archive » Re: selecting radnom number from 2D array
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: selecting radnom number from 2D array [message #75412 is a reply to message #75410] Thu, 10 March 2011 07:46 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Mar 9, 7:36 pm, Ashok <ashokrija...@gmail.com> wrote:
> I have 3 sets of two dimensional array. I need to select random 100
> points from each array (same random point i.e. latitude and
> longitude). How can I do that using RANDOMU()? is there any other idea
> to do this?

Please do be careful and recognize that a random point
on a sphere will not have a uniform distribution of latitudes,
and a set of point with a uniform distribution of latitudes
will not be uniform on a sphere.

For instance to obtain the following uniform distributions

www.grigis.ch/spherepoints.png

I had to account for that.

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Merging Postcript files
Next Topic: latitude and longitude form geotiff file

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

Current Time: Fri Oct 10 14:47:50 PDT 2025

Total time taken to generate the page: 0.23928 seconds