getDensity(x, Bins)

Compute distribution as density
68 téléchargements
Mise à jour 15 mai 2017

Afficher la licence

Compute density distribution of the values in 'x'.
To check the result: plot(pBins, PDD), xlabel('x'), ylabel('Density')

INPUT

x : vector of values
Bins : Optional: bins used to compute the density. if Bins is not given in the call, the function
will use the default binning, given by: Bins = linspace(min(x), max(x), round(sqrt(length(x))))

OUTPUT

PDD : Probability Density Distribution. [ sum(PDD) == 1 ]
pBins : Return the value of the bins used to compute the distribution

Citation pour cette source

Ruggero G. Bettinardi (2024). getDensity(x, Bins) (https://www.mathworks.com/matlabcentral/fileexchange/62948-getdensity-x-bins), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2009a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0