Borrar filtros
Borrar filtros

How can I compute Kurtosis

4 visualizaciones (últimos 30 días)
Lisa Justin
Lisa Justin el 8 de Oct. de 2013
Respondida: cr el 8 de Oct. de 2013
How is Kurtosis computed in matlab?

Respuesta aceptada

cr
cr el 8 de Oct. de 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;

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by