필터 지우기
필터 지우기

Writing a function for the h-index

조회 수: 2 (최근 30일)
Joe Wheeler
Joe Wheeler 2021년 11월 16일
댓글: Joe Wheeler 2021년 11월 17일
I currently have a 365x11 double filled with integer values (ranging from roughly 100-0) that have been sorted in descending order in each column. The rows represent the values for percentage soil moisture each day for a year, and the columns represent this data for 11 consecutive years. I am trying to obtain a value for an h-index style metric for each column, this is obtained by finding the maximum value where f(i) >= i but i can't seem to quite work it out. Any help would be greatly appreciated, thank you in advance!
  댓글 수: 1
dpb
dpb 2021년 11월 16일
편집: dpb 2021년 11월 16일
What is f(i)?
Also seems peculiar to sort on the value -- the correlation with date is then destroyed entirely which would seem to make the value pretty-much meaningless.
Perhaps a working definition of an "h-index style metric" would help...and again, as always attaching the data file as a .mat file would give folks a chance to do something with data.

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

채택된 답변

the cyclist
the cyclist 2021년 11월 17일
My understanding of h-index comes from publishing, for example this definition.
If M is your data matrix, already sorted, then I believe this will do it:
hIndex = sum(M >= (1:size(M,1))');
  댓글 수: 1
Joe Wheeler
Joe Wheeler 2021년 11월 17일
thank you so much, this worked wonders!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by