Re: Add Noise
tholen_at_antispam.ham
Date: 03/18/04
- Next message: Richard Maine: "Re: Add Noise"
- Previous message: analyst41: "Re: A petition to J3 apropos FORTRAN's future"
- In reply to: Joost VandeVondele: "Re: Add Noise"
- Next in thread: beliavsky_at_aol.com: "Re: Add Noise"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Richard Maine: "Re: Add Noise"
- Previous message: analyst41: "Re: A petition to J3 apropos FORTRAN's future"
- In reply to: Joost VandeVondele: "Re: Add Noise"
- Next in thread: beliavsky_at_aol.com: "Re: Add Noise"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|