Home
last modified time | relevance | path

Searched refs:linear_interpolate (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/lib/math/interpolation/src/
Dmain.c19 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()
39 zassert_equal(y_axis[i], linear_interpolate(x_axis, y_axis, len, x_axis[i])); 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()
[all …]
/Zephyr-latest/include/zephyr/drivers/sensor/
Dbattery.h76 return linear_interpolate(ocv_table, soc_axis, BATTERY_OCV_TABLE_LEN, voltage_uv); in battery_soc_lookup()
/Zephyr-latest/include/zephyr/math/
Dinterpolation.h37 static inline int32_t linear_interpolate(const int32_t *x_axis, const int32_t *y_axis, uint8_t len, in linear_interpolate() function