ノイズ生成
b = noisegen(pas, Tmax, sig)
![]() | noisegen() is removed
Examples (clearer, shorter, and more powerful) using grand() follow:
100 10-point wide steps with random amplitudes of normal distribution of mean 1 and standard deviation 0.7: ![]() 40 15-point wide steps with random amplitudes of uniform distribution in [1 3], with initial level 0.5 and final level hold:
![]() |
Scilab 関数 [b]=Noise(t)
を生成します.
ただし, Noise(t)
は区分定数関数です
([k*pas,(k+1)*pas]
の区間は定数).
各一定区間の値は,
互いに独立で同一の分布に従う標準偏差 sig のガウス分布
によるランダムな値です.
関数は,t ≤ 0
および
t ≥ Tmax
では一定です.
![]() | grand allows to generate noises according
to a wide variety of probability distributions. |
Example #1: noisegen()
noisegen(0.5, 30, 1.0); x = -5:0.01:35; y = feval(x, Noise); plot(x, y); | ![]() | ![]() |
Example #2: grand()
// Plot a zero mean gaussian white noise with the variance 1. // To use a different variance, multiply rand() by the square root of the variance. t = 0:.5:30; noise = grand(t, "nor", 0, sig); plot2d2(t, noise); | ![]() | ![]() |
Version | Description |
6.1.0 | noisegen() is obsolete.
It can be replaced using grand and .*. . |
6.1.1 | noisegen() will be removed in the next Scilab version. |