#include #include "ts.h" bool ts_test_chi_squared_pdf( void ) { fp_t const c[] = { 3.000000 }; fp_t const x0[] = { 0.100000, 1.000000, 2.000000, 3.000000, 5.000000 }; fp_t const e0[] = { 0.120004, 0.241971, 0.207554, 0.154180, 0.073225 }; fp_t const * const x[1] = { x0 }; fp_t const * const e[1] = { e0 }; return ts_test(ts_chi_squared_pdf, ts_chi_squared_pdf_offset, x, e, sizeof( c ) / sizeof( *c ), (ts_constant_t *)&c, &ts_chi_squared_pdf_p); }