필터 지우기
필터 지우기

What is the formula implemented in "corr" function?

조회 수: 1 (최근 30일)
A R Sachin
A R Sachin 2016년 8월 9일
답변: Jonathan Kwang 2016년 8월 12일
I'm measuring rank correlation between two real vectors of same dimensions, without Nan entries, with Pearson method. I want to confirm whether internal formulas for "corr" and "corr2" are same in this case.
  댓글 수: 1
Adam
Adam 2016년 8월 9일
Can't you just open the code? It is available to open, though I haven't checked if part of it gets delegated off to a mex file.

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

답변 (1개)

Jonathan Kwang
Jonathan Kwang 2016년 8월 12일
I understand you would like to know if "corr" and "corr2" use the same internal formulas.
They both implement the Pearson correlation. However the "corr2" function implements it to 2D arrays so the internal code and functionality is different.
The Pearson correlation definition used can be found in: K. Pearson, "Mathematical contributions to the theory of evolution. III. Regression, heredity and panmixia" Philos. Trans. Royal Soc. London Ser. A , 187 (1896) pp. 253–318

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by