<< Borda | index | Condorcet >>

DECIDE reference

DECIDE__CentreReduce

short DECIDE__CentreReduce(

    * double * SampleData,
    * const short * SampleLength);

Normalize sample by

    * substracting the sample average from each value
    * dividing each value by the sample standard deviation

Note : Some criteria values can lead the algorithm to divide by 0. These errors are trapped and cause a 999 return value.

return value :

    * 0 : completed sucessfully
    * 1 : null pointer in first parameter
    * 2 : null pointer in second parameter
    * 3 : DataArrayLength < 1
    * 999 : divide by 0 error

<< Borda | index | Condorcet >>


printer friendly view

Google

 

Web

www.christophedavid.org