| 41 | 0.0, &calcNistBennett5, &calcNistBennett5_p }; |
| 42 | |
| 43 | static double calcNistBoxBOD( const double* const x, const int N ) |
| 44 | { |
| 45 | const int pn = 6; |
| 46 | static const double py[] = { |
| 47 | 109, 149, 149, 191, 213, 224, }; |
| 48 | |
| 49 | static const double px[] = { |
| 50 | 1, 2, 3, 5, 7, 10, }; |
| 51 | |
| 52 | double s = 0.0; |
| 53 | int i; |
| 54 | |
| 55 | for( i = 0; i < pn; i++ ) |
| 56 | { |
| 57 | double d = py[ i ]; |
| 58 | d -= x[0]*(1-exp(-x[1]*px[i])); |
| 59 | s += d * d; |
| 60 | } |
| 61 | |
| 62 | return( s ); |
| 63 | } |
| 64 | |
| 65 | static void calcNistBoxBOD_p( double* const minv, double* const maxv, |
| 66 | const int N, double* const optv ) |
nothing calls this directly
no outgoing calls
no test coverage detected