GaussianRandom#
- class GaussianRandom(options)#
Bases:
RandomWaveformGaussianRandomgenerates Gaussian random waveform signals.Creates random signals with values following a normal (Gaussian) distribution with specified mean and standard deviation. Uses MATLAB’s normrnd() function for pseudo-random number generation. Inherits from
RandomWaveform.Example1:
% Create Gaussian random with mean 0, std 1 gaussian = GaussianRandom(duration = 0.01); gaussian.plot();
Example2:
% Create Gaussian random with mean 2, std 0.5 gaussian = GaussianRandom(mean = 2, standardDeviation = 0.5, duration = 0.01); gaussian.plot();
- Constructor Summary
- GaussianRandom(options)#
Construct a GaussianRandom object.
- Parameters:
samplingRate (
double, optional) – Sampling rate in Hz (default: [])startTime (
double, optional) – Start time in seconds (default: 0)duration (
double, optional) – Duration in seconds (default: [])mean (
double, optional) – Mean of Gaussian distribution (default: 0)standardDeviation (
double, optional) – Standard deviation of Gaussian distribution (default: 1)
- Property Summary
- Mean double = 0#
Mean of the Gaussian distribution.
- StandardDeviation double = 1#
Standard deviation of the Gaussian distribution.
- Method Summary
- TimeFunc()#
Get the time function for the Gaussian random waveform.
Creates a function handle that generates Gaussian random values with the configured mean and standard deviation. Implements the abstract
TimeFunc()method fromWaveform.- Returns:
Function that takes time array and returns Gaussian random values
- Return type:
function_handle