Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
Sometimes we need samples that come from a mixture of pdf's, where more than 1 peaks are observed. E.g. for analyzing goodness of a non-parametric kernel density estimation method.
By using the Rejection method, this function generates random numbers from a mixture (average sum) of N normal (Gaussian) distributions. It gives also the mixture probability density function (pdf) as an optional output.
An example of 500 samples generated from 3 Gaussian distributions are shown in the figure, i.e. by the following command:
>> X = umgrn([-4 0 5],[1 2 1.5],500);
>> figure; hist(X);
See 'help umgrn' for more details.
Authors:
1. Avan Suinesiaputra (avan.sp@gmail.com)
2. Fadillah Tala (fadil.tala@gmail.com)
Cita come
Avan Suinesiaputra (2026). Univariate Multimodal Random Number Generator (https://it.mathworks.com/matlabcentral/fileexchange/6488-univariate-multimodal-random-number-generator), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.0.0.0 (2,46 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.0.0.0 |
