How to calculate MSE for Gaussian histogram?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
studentmatlaber
el 22 de Sept. de 2021
Comentada: Image Analyst
el 23 de Sept. de 2021
I fit the Gaussian distribution with the histfit command. I want to calculate MSE but I have no idea how to do it.
Can this approach be used for MSE calculate?
hhf = histfit(noise_filt)
df = fitdist(noise_filt(:), 'Normal')
y = normpdf(hhf(1).XData,df.mu,df.sigma);
mse = mean((y - hhf(1).YData).^2)
mse = 1.183472134374673e+07
0 comentarios
Respuesta aceptada
Image Analyst
el 22 de Sept. de 2021
I'd probably do it on the original data, not the histogram
meanValue = mean(noise_filt);
mse = mean((noise_filt - meanValue) .^ 2)
2 comentarios
Image Analyst
el 23 de Sept. de 2021
I don't see why not. The MSE doesn't care what produced the reference and test data.
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!