cfit extract normalization mean and std
Mostrar comentarios más antiguos
Hello,
I am fitting a rational function to some data, in my case x varies over many orders of magnitude, so I used to 'Normalize' option when fitting. There is a normalization mean and std to the x, how do I extract that? There isn't a public method to cfit for this as far as I know.
I have attached the fit function in question. The values I am interest in are:
where x is normalized by mean 6.21e+05 and std 1.65e+06
Respuesta aceptada
Más respuestas (1)
Tobias Held
el 5 de En. de 2022
Add this to your Fit function.
[fitresult,norm, gof] = createFitNom(xData, yData)
[...]
% Save Normalize values
[x,mean,std] = normalize(xData);
norm.mean = mean;
norm.std = std;
[...]
end
I am not yet sure if a struct is a good data type for this, but the idea should be clear now.
Categorías
Más información sobre Fit Postprocessing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!