summaryrefslogtreecommitdiffstats
path: root/test/chi_squared_pdf.c
blob: c2f5cdbb4e6ab20cb007090bfe799cb12d696cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stddef.h>
#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);
}