MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: creating distributions

  • To: mathgroup at
  • Subject: [mg14741] Re: [mg14697] creating distributions
  • From: Jurgen Tischer <jtischer at>
  • Date: Wed, 11 Nov 1998 17:53:43 -0500
  • Organization: Universidad del Valle
  • References: <>
  • Sender: owner-wri-mathgroup at

Hi Naum,


Naum Phleger wrote:
>     I want to distribute vectors for a given vector field evenly over
> the surface of a sphere.  The easiest way that I have come up with is
> to generate a random list of {theta,fi} pairs.  This makes the field
> too dense at the north and south poles.  I would like to use a cosine
> distribution to be used in my random number generator so that I get a
> more uniform distribution.  Here is my code now, and what I would like
> it to look more like.
> density is the total number of vectors
> NOW:
>     pointlist=Table[{Random[Real,{ -pi/2 , pi/2 }], Random[Real,{ -pi ,
> pi }]},{density,i}]
>     pointlist=Table[{Random[CosDistribution,{ -pi/2 , pi/2 }],
> Random[Real,{ -pi , pi }]},{density,i}]
>               -NAUM

  • Prev by Date: Re: Non-linear differential equation
  • Next by Date: Mathematica Lightning Model?
  • Previous by thread: creating distributions
  • Next by thread: Simple MathLink question