Lines Matching refs:y_axis

14 	int32_t y_axis[] = {20, 22, 24, 28, 36};  in ZTEST()  local
17 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
19 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, INT32_MIN)); in ZTEST()
20 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, -1)); in ZTEST()
21 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, 0)); in ZTEST()
22 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, x_axis[0] - 1)); in ZTEST()
24 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, x_axis[4] + 1)); in ZTEST()
25 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, 100)); in ZTEST()
26 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, INT32_MAX)); in ZTEST()
32 int32_t y_axis[] = {20, 22, 24, 28, 36}; in ZTEST() local
35 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
39 zassert_equal(y_axis[i], linear_interpolate(x_axis, y_axis, len, x_axis[i])); in ZTEST()
45 int32_t y_axis[] = {0, 1, 2}; in ZTEST() local
49 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
53 zassert_equal(0, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
57 zassert_equal(1, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
61 zassert_equal(2, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
67 int32_t y_axis[] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; in ZTEST() local
72 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
77 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
83 int32_t y_axis[] = {-100, -90, -80, -70, -60, -50, -40, -30, -20, -10, 0}; in ZTEST() local
88 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
93 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
99 int32_t y_axis[] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; in ZTEST() local
105 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
110 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
116 int32_t y_axis[] = {-100, -90, -80, -70, -60, -50, -40, -30, -20, -10, 0}; in ZTEST() local
122 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
127 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
133 int32_t y_axis[] = {10, 30, 110, 40, 0}; in ZTEST() local
138 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST()
143 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
149 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
155 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
161 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()