<< Rank | index | Zenith_Nadir >>

DECIDE reference

DECIDE__Weight

short DECIDE__Weight(

    * double * WeightedSumArray,
    * const long * WeightedSumArraySize,
    * double * WeightedProductArray,
    * const long * WeightedProductArraySize,
    * const short * RowsCount,
    * const short * ColumnsCount,
    * double * DecisionMatrix,
    * const double * WeightsArray)

    * replaces the values of DecisionMatrix by the values obtained when applying the weights given in WeightsArray, after normalization using vi = ai / (a1 + a2 + ... + an)
    * computes the weighted sum for each action and stores it into WeightedSumArray
    * computes the weighted product for each action and stores it into WeightedProductArray

return value :

    * 0 : completed sucessfully
    * 1 : null pointer in first parameter
    * 2 : null pointer in second parameter
    * 3 : null pointer in third parameter
    * 4 : null pointer in fourth parameter
    * 5 : null pointer in fifth parameter
    * 6 : null pointer in sixth parameter
    * 7 : null pointer in seventh parameter
    * 8 : null pointer in eighth parameter
    * 101 : *WeightedSumArraySize < (long) (*RowsCount * sizeof(double))
    * 102 : *WeightedProductArraySize < (long) (*RowsCount * sizeof(double))
    * 900 : malloc() failed
    * 901 : internal call to DECIDE__PreProcess failed

<< Rank | index | Zenith_Nadir >>


printer friendly view

Google

 

Web

www.christophedavid.org