<< Random | index | Weight >>

DECIDE reference

DECIDE__Rank

short DECIDE__Rank(

    * double * DecisionMatrix,
    * const short * DataArrayLength,
    * const short * Mode)

Replace the values of DecisionMatrix with a value based on their rank :

    * mode 1 : ascending (lowest value becomes 1, highest value becomes DataArrayLength). Entries with the same value get the same rank, and the rank of the next one is incremented by the number of entries having the same value.
    * mode 2 : descending (lowest value becomes DataArrayLength, highest value becomes 1). Entries with the same value get the same rank, and the rank of the next one is decremented by the number of entries having the same value.
    * mode 3 : ascending (lowest value becomes 1, highest value becomes DataArrayLength). Entries with the same value get the same "rank", which is the avererage of the ranks they would have had if they had not been equal. (KENDALL)

  	mode 1 	mode 2 	mode 3

100 1 4 1 200 2 3 2.5 200 2 3 2.5 400 4 2 4 500 5 1 5

return value :

    * 0 : completed sucessfully
    * 1 : null pointer in first parameter
    * 2 : null pointer in second parameter
    * 3 : null pointer in third parameter
    * 101 : DataArrayLength < 1
    * 102 : invalid Mode

<< Random | index | Weight >>


printer friendly view

Google

 

Web

www.christophedavid.org