diff options
Diffstat (limited to 'test/prings_kst.c')
| -rw-r--r-- | test/prings_kst.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/test/prings_kst.c b/test/prings_kst.c new file mode 100644 index 0000000..8a1bd28 --- /dev/null +++ b/test/prings_kst.c @@ -0,0 +1,55 @@ +#include <math.h> +#include <stddef.h> +#include "ts.h" + +bool ts_test_prings_kst( void ) +{ + fp_t const x[] = { + 100, 105, 98, 110, 102, 115, 108, 120, 112, 125, + 118, 130, 122, 135, 128, 140, 132, 145, 138, 150, + 142, 155, 148, 160, 152, 165, 158, 170, 162, 175, + 168, 180, 172, 185, 178, 190, 182, 195, 188, 200, + 192, 205, 198, 210, 202, 215, 208, 220, 212, 225, + 218, 230, 222, 235, 228, 240 + }; + + fp_t const * const inp[1] = { x }; + + fp_t const e0[] = { + 51.9408578539013, 75.1308260917654, 78.103866719, + 94.8088438575893, 92.483818257572, 105.456228286493, + 101.394220195137, 111.288138429023, 104.640206278203, + 113.013133431368, 106.311034357386, 113.131203505727, + 105.038276407899, 111.304589974597, 103.842952160622, + 109.243663263608, 100.915323682376, 106.178344115008, + 98.7322514625897, 103.443195102946, 95.3595796482774, + 100.10652950864, 92.9706808772205, 97.3126510773803, + 89.6400548204848, 94.0861019609992, 87.3507958601018, + 91.4647371720775, 84.2384208045559, 88.4793019904416, + 82.1513111963106, 86.0996943377378, 79.3034333929425, + 83.3828886921002, 77.4376734462827, 81.2491274609335, + 74.8491800513007, 78.788567419848, 73.1922770738286, + 76.8810806798416, 70.8401912421373, 74.6513723261792, + 69.3696853171888, 72.9441719183728, 67.2269459044808, + 70.9178130955952, 65.9191399381158 + }; + fp_t const e1[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 90.5830006631871, + 93.3867672592096, 95.0023006464817, 97.2684135038873, + 98.2396463668887, 99.8727643178523, 100.369037798198, + 101.478365981375, 101.407985694, 102.004280496626, + 101.595276867371, 101.826266646818, 101.017930772, + 100.90400561408, 99.9123400219729, 99.5873789038989, + 98.3439633934721, 97.811730714413, 96.5041138576241, + 95.8741917719308, 94.4197204010089, 93.677168099688, + 92.2364359867658, 91.4693432806373, 89.9486045446755, + 89.1278900631035, 87.6666129860009, 86.8644272953675, + 85.3625213898592, 84.5407771436078, 83.1222146348854, + 82.3420728905049, 80.9043376844589, 80.122717014674, + 78.7785880524883, 78.0492860357239, 76.6964935193185, + 75.9741584663531, 74.7172811503234 + }; + fp_t const * const exp[2] = { e0, e1 }; + + return ts_test(ts_prings_kst, ts_prings_kst_offset, inp, exp, 55, (ts_constant_t *)NULL, &ts_prings_kst_p); +} |