given that you have this line of code how do you count the number of points in each quadrant ?

조회 수: 2 (최근 30일)
Classical = pdist2(matrix_logdiff_nsample, mean(matrix_logdiff_nsample),'mahal');
p = size(matrix_logdiff_nsample,2);
chi2quantile = chi2inv(0.99,p);
[SFmcd, MFmcd, Fmcd, OutFmcd] = robustcov(matrix_logdiff_nsample);
plot(Classical, Fmcd, 'o')
line([chi2quantile, chi2quantile], [0, 120], 'color', 'r')
line([0, 80], [chi2quantile, chi2quantile], 'color', 'r')
hold on
plot(Classical(OutFmcd), Fmcd(OutFmcd), 'b*')
xlabel('Mahalanobis Distance')
ylabel('Robust Distance')
title('Distance Plot, Fast MCD method')

채택된 답변

Adam Danz
Adam Danz 2020년 7월 12일
편집: Adam Danz 2020년 7월 13일
You just need to modify either of the two answers received for similar questions in the past (listed under your question).
To modify this answer, you just need to replace the centerPoint_x, centerPoint_y values with the coordinates you're using to define the quadrants.
Based on your image it would look something like,
centerPoint_x = 15; % approximate guess based on image
centerPoint_y = 18; % approximate guess based on image
  댓글 수: 5
Adam Danz
Adam Danz 2020년 7월 13일
편집: Adam Danz 2020년 7월 15일
You need to exchange "x" and "Y" with whatever values you're using to define the center point. Don't just copy-paste without doing the thinking.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Price and Analyze Financial Instruments에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by