RMSE heart rate estimation
조회 수: 4 (최근 30일)
이전 댓글 표시
How do i write RMSE fomula in matlab. K is the length signal
댓글 수: 0
채택된 답변
Chunru
2022년 5월 24일
편집: Chunru
2022년 5월 24일
hrerror = randn(100, 1); % generate some random data
hr_rmse =rms(hrerror) % use rms function
hr_rmse1 = sqrt(mean(hrerror.^2)) % root-mean-square
% Not recommended
hr_rmse2=0;
K = length(hrerror);
for i=1:K
hr_rmse2 = hr_rmse2 + hrerror(i).^2;
end
hr_rmse2 = sqrt(hr_rmse2/K)
댓글 수: 3
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!