How can I compare reference curve with other curves ?

조회 수: 21 (최근 30일)
Richard A
Richard A 2023년 5월 11일
편집: Richard A 2023년 5월 14일
We have a reference curve of the estimated workload that randomly changes over time (based on a point assessment of the workload in every specific minute) and we need to compare it with the curves that represent the workload from the time-frequency analysis of ECG and EEG (LF/HF, PSD, . ..). Can you help me choose a suitable method for this comparison?
  댓글 수: 3
Richard A
Richard A 2023년 5월 11일
My question is about finding a suitable procedure in MATLAB for comparing two curves for this particular case.
KSSV
KSSV 2023년 5월 11일
How about RMSE?

댓글을 달려면 로그인하십시오.

채택된 답변

Mathieu NOE
Mathieu NOE 2023년 5월 11일
you could use the correlation coeffiient between two data set
(used in curve fitting for example)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function R2 = my_R2_coeff(data,data_fit)
% R2 correlation coefficient computation
% The total sum of squares
sum_of_squares = sum((data-mean(data)).^2);
% The sum of squares of residuals, also called the residual sum of squares:
sum_of_squares_of_residuals = sum((data-data_fit).^2);
% definition of the coefficient of correlation (R squared) is
R2 = 1 - sum_of_squares_of_residuals/sum_of_squares;
end
  댓글 수: 2
Richard A
Richard A 2023년 5월 11일
Do you think it will work if the curves are so different and variable over time ?
Mathieu NOE
Mathieu NOE 2023년 5월 11일
let's try it !
do you have some code and data to share ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by