RMSE 计算公式

Short script that calculates root mean square error from data vector or matrix and the corresponding estimates.
Checks for NaNs in data and estimates and deletes them and then simply does:
r = sqrt( sum( (data( : )-estimate( : )).^2) / numel(data) );
That’s it.

假设试验测量值y_i; 拟合曲线对应值z_i; 数据一共有N个;
结果应该是 sqrt( sum( (y_i-z_i)^2 )/N ) 其中sum对所有指标i 求和。

你可能感兴趣的:(计算公式)