Changes between Version 14 and Version 15 of ValidationSimple


Ignore:
Timestamp:
Apr 15, 2010, 9:45:25 AM (15 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ValidationSimple

    v14 v15  
    2121}}}
    2222This frees the structure pointed to by data, if it's non-NULL.
    23 {{{
    24 extern double compute_granted_credit(WORKUNIT&, vector<RESULT>& results);
    25 }}}
    26 Given a set of results (at least one of which is valid) compute the credit to be granted to all of them.
    27 Normally this function simply returns median_mean_credit(wu, results).
    28 If [WorkGeneration credit is specified in the workunit],
    29 call get_credit_from_wu(wu, results).
    3023
    3124You must link these functions with the files validator.cpp, validate_util.cpp, and validate_util2.cpp.
     
    10194
    10295}}}
    103 
    104 == Other credit-granting formulas ==
    105 
    106 '''stddev_credit()'''
    107 
    108 Useful for 3 or more valid results.
    109 
    110 Computes basic stats for the claimed credits and if they are all close together it averages them.
    111 If some are close together but there are a couple of outliers, then it will average the results within the cluster and ignore the outliers.
    112 
    113 '''two_credit()'''
    114 
    115 Useful for 2 valid results.
    116 
    117 It will average them if the claimed credits are close together.
    118 If they aren't, then it will compare each claimed credit against that computer's
    119 historical granted credit per CPU sec to see which one is claiming closer to their historical average.
    120 It will grant credit to both computers with the claimed credit that is closer to the historical value.
    121 This helps grant the most appropriate credit for situations where there is a computer
    122 that always claims too low or a computer that always claims too high.