diff options
Diffstat (limited to 'test/gaussian_quantile.c')
| -rw-r--r-- | test/gaussian_quantile.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/gaussian_quantile.c b/test/gaussian_quantile.c new file mode 100644 index 0000000..8780c19 --- /dev/null +++ b/test/gaussian_quantile.c @@ -0,0 +1,11 @@ +#include <stddef.h> +#include "ts.h" + +bool ts_test_gaussian_quantile( void ) +{ + fp_t const x0[] = { 0.100000, 0.250000, 0.500000, 0.750000, 0.900000 }; + fp_t const e0[] = { -1.281552, -0.674490, -0.000000, 0.674490, 1.281552 }; + fp_t const * const x[1] = { x0 }; + fp_t const * const e[1] = { e0 }; + return ts_test(ts_gaussian_quantile, ts_gaussian_quantile_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_gaussian_quantile_p); +} |