필터 지우기
필터 지우기

Manually compute quantiles given probability of the data

조회 수: 1 (최근 30일)
Natialol
Natialol 2014년 3월 23일
I want to calculate some quantiles in Matlab but given specific probabilities so I cannot use prctile or quantile.
Specifically if I have
Values [a b c d e f;
Probabilities .5 .1 .2 .05 .15]
I can sort with
sortrows,
then do a cumulative sum over the second row and finally interpolate using
interp1q.
Is there a faster way to do this?

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by