<< Noise Realizations Noise Realizations noisecu >>

stftb >> stftb > Noise Realizations > noisecg

noisecg

Analytic complex gaussian noise

Calling Sequence

NOISE = noisecg(N)
NOISE = noisecg(N, A1)
NOISE = noisecg(N, A1, A2)

Parameters

N:

a positive integer: the length of the noise signal.

A1:

a real scalar (see below).

A2:

a real scalar (see below).

NOISE:

a complex column vector of size N: the noise signal.

Description

NOISE=noisecg(N,A1,A2) computes an analytic complex gaussian noise of length N with mean 0.0 and variance 1.0.

NOISE=noisecg(N) yields a complex white gaussian noise.

NOISE=noisecg(N,A1) yields a complex colored gaussian noise obtained by filtering a white gaussian noise through a sqrt(1-A1^2)/(1-A1*z^(-1)) first order filter.

NOISE=noisecg(N,A1,A2) yields a complex colored gaussian noise obtained by filtering a white gaussian noise through a sqrt(1-A1^2-A2^2)/(1-A1*z^(-1)-A2*z^(-2)) second order filter.

Examples

N = 512;
noise = noisecg(N);
m = mean(noise)
sigma2 = sum((noise-m).^2)
clf
subplot(211); plot(real(noise)); a = gca();
f = linspace(-0.5,0.5,N);
subplot(212); plot(f',abs(fftshift(fft(noise))).^2);

See also

Authors


Report an issue
<< Noise Realizations Noise Realizations noisecu >>