summaryrefslogtreecommitdiffstats
path: root/test/psychological_line.c
blob: 711923c9622941f65003e0826ceb6b33000f8070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stddef.h>
#include "ts.h"

bool ts_test_psychological_line( void )
{
    fp_t const x0[] = { 10, 10, 20, 20, 30 };
    fp_t const x1[] = { 12, 11, 22, 19, 32 };
    fp_t const x2[] = { 9,  9,  19, 18, 29 };
    fp_t const x3[] = { 11, 10, 21, 20, 31 };

    uint_t const k = 2;

    fp_t e[4];
    e[0] = 50;
    e[1] = 50;
    e[2] = 50;
    e[3] = 50;

    fp_t const * const x[] = { x0, x1, x2, x3 };
    fp_t const * const exp[1] = { e };

    return ts_test(ts_psychological_line, ts_psychological_line_offset, x, exp, 5, (ts_constant_t *)&k, &ts_psychological_line_p);
}