필터 지우기
필터 지우기

Percentage agreement between data sets - automate

조회 수: 7 (최근 30일)
Bran
Bran 2015년 9월 24일
답변: the cyclist 2015년 9월 24일
I am currently trying to automate several processes that I do repeatedly. I have recently gotten the stats toolbox. Is there a function on there that automatically calculated percentage agreement between theoretical and experimental datasets? For example X = DATASET (A large vector of over two hundred values) and Y = Theoretical data

채택된 답변

the cyclist
the cyclist 2015년 9월 24일
Something like this may work for you:
X = [1.000 2.004 3.05];
Y = [1 2 3];
tolerance = 0.01;
percentAgreement = 100*sum((abs(X-Y) < tolerance))/numel(A)

추가 답변 (1개)

the cyclist
the cyclist 2015년 9월 24일
I don't think there will be anything "out of the box" that will do exactly what you want, but this seems very easy to program to me. You'll need to be precise in what you mean by "agreement", and address some simple logistical issues.
For example
  • Are you doing pairwise comparison, or population-level comparison?
  • Are the theoretical and experimental datasets already in one-to-one correspondence, or do you need to do some sorting?
  • Does agreement need to be perfect, or is 1.00001 equal to 1?
etc.
  댓글 수: 1
Bran
Bran 2015년 9월 24일
Ahh thought not. I am doing pairwise and I have already reorganised the datasets. No not perfect so yes in this case 1.00001 would be acceptable

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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by