필터 지우기
필터 지우기

how to assign weightage

조회 수: 1 (최근 30일)
johnson saldanha
johnson saldanha 2018년 11월 12일
댓글: johnson saldanha 2018년 11월 13일
suppose i have a matrix x and the second row has values ranging from 0.2 to 102 and weightage has to be assigned to these depending on the mean. the values close to the mean should have highest weightage and progressively decrease as it goes farther.
  댓글 수: 20
Walter Roberson
Walter Roberson 2018년 11월 12일
You said that the values closest to the mean should have the highest weight . sorted_distance tells you exactly how far values are from the mean, arranged in increasing distance . sort_order tells you what the original order was. For example if the first entry of sorted_distance is 0.063 and the first entry of sort_order is 19 then that tells you that the entry that was closest to the mean was aa distance of 0.063 from the mean and that it was the 19th row in the original data that had that entry .
Now it is up to you to decide how a particular distance from the mean shold be transformed into a weight .
johnson saldanha
johnson saldanha 2018년 11월 13일
yeah got it. thank you

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by