How can I compare reference curve with other curves ?

21 Ansichten (letzte 30 Tage)
Richard A
Richard A am 11 Mai 2023
Bearbeitet: Richard A am 14 Mai 2023
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 Kommentare
Richard A
Richard A am 11 Mai 2023
My question is about finding a suitable procedure in MATLAB for comparing two curves for this particular case.
KSSV
KSSV am 11 Mai 2023
How about RMSE?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mathieu NOE
Mathieu NOE am 11 Mai 2023
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 Kommentare
Richard A
Richard A am 11 Mai 2023
Do you think it will work if the curves are so different and variable over time ?
Mathieu NOE
Mathieu NOE am 11 Mai 2023
let's try it !
do you have some code and data to share ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu EEG/MEG/ECoG finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by