Re: Add Noise

tholen_at_antispam.ham
Date: 03/18/04


Date: Thu, 18 Mar 2004 20:36:14 GMT

Joost VandeVondele writes:

>> David Frank writes:

>>> Filippos Louis wrote:
  
>>>> Hi all
>>>> Does anyone know of a Fortran routine to add noise to data on a
>>>> vector?
>>>> (Gaussian or Random)!
>>>> Thank you in advance
 
>>> No routine needed...
>>>
>>> call random_number(noise)
>>> noisy_vector = vector + (noise - 0.5)*scale

>> That won't add Gaussian noise.

> noisy_vector=vector
> DO i=1,N
> call random_number(noise)
> noisy_vector=noisy_vector+(noise -0.5)*scale
> ENDDO

Inefficient, and it's not immediately obvious what the
distribution would look like, though it should at least
be symmetric.



Relevant Pages

  • Re: Add Noise
    ... Joost VandeVondele wrote: ... >>That won't add Gaussian noise. ... > ENDDO ... To convert this distribution into a ...
    (comp.lang.fortran)
  • Re: How to boost speed
    ... statistics for the joint distribution of two ... In fact the OP could just as well compute KS statistics for X1 ...
    (comp.lang.fortran)