Skip to content

Uniform Noise Stimulus Generation

This class does not have any unique properties as its purpose is to generate a uniformly noisy stimulus signal. This class can work with binned representations of the stimuli.

Unique Properties

This stimulus generation method does not have any unique properties in addition to those inhereted from the Abstract and Abstract Binned classes.

generate_stimulus

[stim, Fs, spect, binned_repr, frequency_vector] = generate_stimulus(self)

Generate a vector of stimuli where the bin amplitudes are chosen randomly from a uniform distribution over [self.unfilled_dB, self.filled_dB] dB.

OUTPUTS:

stim: self.nfft + 1 x 1 numerical vector, the stimulus waveform,

Fs: 1x1 numerical scalar, the sample rate in Hz.

spect: self.nfft / 2 x 1 numerical vector, the half-spectrum, in dB.

binned_repr: self.n_bins x 1 numerical vector, the binned representation.

frequency_vector: self.nfft / 2 x 1 numerical vector, the frequencies associated with the spectrum, in Hz.

Class Properties Used:

- n_bins