MCPcopy Create free account
hub / github.com/avaneev/biteopt / calcNistBoxBOD

Function calcNistBoxBOD

tests/test_nist.cpp:43–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 0.0, &calcNistBennett5, &calcNistBennett5_p };
42
43static 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
65static void calcNistBoxBOD_p( double* const minv, double* const maxv,
66 const int N, double* const optv )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected