Filter löschen
Filter löschen

How can I compute Kurtosis

4 Ansichten (letzte 30 Tage)
Lisa Justin
Lisa Justin am 8 Okt. 2013
Beantwortet: cr am 8 Okt. 2013
How is Kurtosis computed in matlab?

Akzeptierte Antwort

cr
cr am 8 Okt. 2013
if you have stats toolbox, there is a function called kurtosis. Even otherwise, this should be very straightforward.
function k = kurtosis3(x,dim)
% Kurtosis function
mu = mean(x,dim);
repsiz = ones(1,length(size(mu)));
repsiz(dim) = size(x,dim);
d = (x-repmat(mu,repsiz)).^2;
n = d.^2;
k = mean(n,dim)./(mean(d,dim)).^2;

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by