Acoular 16.5 documentation

UncorrelatedNoiseSource

«  MovingPointSource   ::   sources   ::   calib  »

UncorrelatedNoiseSource

class acoular.sources.UncorrelatedNoiseSource

Bases: acoular.sources.SamplesGenerator

Class to simulate white or pink noise as uncorrelated signal at each channel.

The output is being generated via the result() generator.

signal = Trait(SignalGenerator, desc = "type of noise")

Type of noise to generate at the channels. The ~acoular.signals.SignalGenerator-derived class has to

seed = CArray(dtype = uint32, desc = "random seed values")

Array with seeds for random number generator. When left empty, arange(numchannels)+:attr:signal.seed will be used

numchannels = Delegate('mpos', 'num_mics')

Number of channels in output, is automatically set / depends on used microphone geometry

mpos = Trait(MicGeom, desc="microphone geometry")

Microphone locations as provided by a MicGeom-derived object

c = Float(343., desc="speed of sound")

Speed of sound, defaults to 343 m/s

start_t = Float(0.0, desc="signal start time")

Start time of the signal in seconds, defaults to 0 s

start = Float(0.0, desc="sample start time")

Start time of the data aquisition at microphones in seconds, defaults to 0 s

numsamples = Delegate('signal')

Number of samples, is set automatically / depends on signal

sample_freq = Delegate('signal')

Sampling frequency of the signal, is set automatically / depends on signal

result(num=128)

Python generator that yields the output at microphones block-wise.

Parameters:

num : integer, defaults to 128

This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block)

Returns:

Samples in blocks of shape (num, numchannels).

The last block may be shorter than num.

«  MovingPointSource   ::   sources   ::   calib  »