Home »
Public Forums »
archive »
Re: digital phantom
Re: digital phantom [message #8264] |
Fri, 21 February 1997 00:00 |
Achim Hein
Messages: 42 Registered: February 1996
|
Member |
|
|
Phil Williams wrote:
>
> I'm in the process of generating a digital phantom to test some code
> that I have written and was wondering if anyone has written a gaussian
> noise generator before I go and do it myself.
If I understand you right, you are looking for noise generators.
IDL offers you two kinds: one to get uniformly distributed noise, the
other one to get gaussian (in IDL it is called normally distributed)
noise.
uniformly : uni=2.*!PI*randomu(seed,N)-!Pi
gaussian : gaus=(2.*!PI*randomn(seed,N)/12.
(to get identical variance you have to multiply these factors)
triangle distribution: tri=(uni1+uni2)/2.
gaussian with small variance: gaus_small=(gaus1+gaus2+...+gausN)/N
Cheers
Achim
--
_______________________________________________
Dipl.-Ing. A. Hein
PB2 / ZESS - Uni-GH-Siegen
Paul-Bonatz Str. 9-11
57068 Siegen
Phone: 0271/740-3362
Fax: 0271/740-2336
_______________________________________________
Please have a look at our Web-Sites:
http://www.nv.et-inf.uni-siegen.de/pb2/www_pb2
_______________________________________________
|
|
|
Current Time: Wed Oct 08 13:33:03 PDT 2025
Total time taken to generate the page: 0.00930 seconds