フィルターのクリア

Normalised gaussian random variables

1 回表示 (過去 30 日間)
Awakash Dixit
Awakash Dixit 2019 年 3 月 30 日
回答済み: Jeff Miller 2019 年 3 月 30 日
how to generate random variables with gaussian distribution in between -1 and 1 with 0 mean and 1 standard deviation.

回答 (1 件)

Jeff Miller
Jeff Miller 2019 年 3 月 30 日
You may want to truncate the normal distribution as shown here. They give an example with truncation between -2 and +2, which you can change to -1 and +1 in the obvious way.
Note, however, that the standard deviation of the truncated distribution will be much less than 1. If you want a standard deviation of 1 for the truncated normal distribution, then you will have to start with a different normal distribution (i.e., one that has a standard deviation >> 1 before truncation).

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by