Effacer les filtres
Effacer les filtres

Normal Random number generation

2 vues (au cours des 30 derniers jours)
Rakesh Jain
Rakesh Jain le 9 Mar 2017
Commenté : Walter Roberson le 15 Mar 2017
I want to generate random numbers from a standard normal distribution with decreasing standard deviation that lies between 0 and 1. First, what is meant by decreasing standard deviation? Secondly, randn generates normal distribution random numbers. But how to limit them between 0 and 1?

Réponse acceptée

James Tursa
James Tursa le 9 Mar 2017
Modifié(e) : Walter Roberson le 9 Mar 2017
  7 commentaires
Rakesh Jain
Rakesh Jain le 15 Mar 2017
Modifié(e) : Rakesh Jain le 15 Mar 2017

@Walter Roberson, BBBC is Big Bang Big Crunch Optimisation Algorithm by Osman K. Erol and Ibrahim Eksin discovered in 2006

Walter Roberson
Walter Roberson le 15 Mar 2017
Decreasing standard deviation would result in an algorithm with similarities to Simulated Annealing.

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 9 Mar 2017
My interpretation is that the normal distribution is to be unbounded, not restricted to the range [0 1], but that the standard deviation used is to start and 1 and decrease to 0. For example,
SD = linspace(1, 0, 20)
results = randn(1,20) .* SD
That would give you 20 results with stand deviation decreasing from 1 to 0.
As for why... I don't know?
  1 commentaire
Rakesh Jain
Rakesh Jain le 9 Mar 2017
Got it. Thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by