Register to reply

Brown noise

by btb4198
Tags: brown, noise
Share this thread:
btb4198
#1
Jun16-14, 10:21 AM
P: 275
ok I am new to Brown Noise and DSP
but from I read this is how you would do it :
 class BrownNoise : WaveProvider32
    {
        double T;
        int N;
        double dt;
        Random rand1;
        float lastValue;
public BrownNoise()
{
    T = 1;
   rand1 = new Random();
    }

public override int Read(float[] buffer, int offset, int sampleCount)
{
    buffer[0] = 0;
    lastValue =0;

    dt = T / (double)sampleCount;

    for (int i = 1 ; i < sampleCount; i++)
    {
    float temp = (float)(Math.Sqrt(dt)*rand1.Next(255));
    buffer[i] = lastValue + temp;
    lastValue = temp;
    }
    return sampleCount;
}
is that right?
Brown noise you do add the last number with the new number right ?
also
samplecount = 13230;
offset = 0;
Phys.Org News Partner Engineering news on Phys.org
'Smart material' chin strap harvests energy from chewing
Lockheed Martin advances live, virtual, constructive training in flight test
Lockheed Martin conducts flight tests of aircraft laser turret for DARPA
Greg Bernhardt
#2
Jun30-14, 09:50 AM
Admin
Greg Bernhardt's Avatar
P: 9,701
I'm sorry you are not generating any responses at the moment. Is there any additional information you can share with us? Any new findings?


Register to reply

Related Discussions
Thermal White Noise - Johnson–Nyquist noise Electrical Engineering 63
Signal to noise ratio for thermal and shot noise Introductory Physics Homework 4
Johnson noise & Shot noise Advanced Physics Homework 4
Brown noise General Physics 7
Definition of dynamic noise and observational noise in finance Set Theory, Logic, Probability, Statistics 1