Break-point function (or time-tagged values).
Data Structures | |
| struct | bpfunc |
Typedefs | |
| typedef struct bpf | bpf_t |
| The bpf data type. | |
| typedef struct bpfunc | bpfunc_t |
Functions | |
| int | bpf_get_size (bpf_t *bpf) |
| Get size of a bpf. | |
| double | bpf_get_time (bpf_t *bpf, int index) |
| Get time of point at given index of a bpf. | |
| double | bpf_get_value (bpf_t *bpf, int index) |
| Get value of point at given index of a bpf. | |
| double | bpf_get_slope (bpf_t *bpf, int index) |
| Get slope of point at given index of a bpf. | |
| double | bpf_get_duration (bpf_t *bpf) |
| Get duration of bpf. | |
| FTS_API double | bpf_get_interpolated (bpf_t *bpf, double time) |
| Get (interpolated) bpf value at given time. | |
| FTS_API void | bpf_clear (bpf_t *bpf) |
| Clear a bpf (set to a single point 0 at time 0). | |
| FTS_API void | bpf_set_point (bpf_t *bpf, int index, double time, double value) |
| Set point at given index. | |
| FTS_API void | bpf_append_point (bpf_t *bpf, double time, double value) |
| Append point with given time and value to a bpf. | |
| FTS_API int | bpf_insert_point (bpf_t *bpf, double time, double value) |
| Insert a new point with given time and value in a bpf. | |
| FTS_API void | bpf_simplify (bpf_t *bpf) |
| Remove redundant points from a bpf. | |
Variables | |
| FTS_API fts_class_t * | bpf_class |
| The bpf class identifier (pointer to class instance). | |
| FTS_API void bpf_append_point | ( | bpf_t * | bpf, | |
| double | time, | |||
| double | value | |||
| ) |
Append point with given time and value to a bpf.
| bpf | the bpf | |
| time | time of new point | |
| value | value of new point |
| FTS_API void bpf_clear | ( | bpf_t * | bpf | ) |
Clear a bpf (set to a single point 0 at time 0).
| bpf | the bpf |
| double bpf_get_duration | ( | bpf_t * | bpf | ) |
Get duration of bpf.
| bpf | the bpf |
| FTS_API double bpf_get_interpolated | ( | bpf_t * | bpf, | |
| double | time | |||
| ) |
Get (interpolated) bpf value at given time.
| bpf | the bpf | |
| time | the time |
| int bpf_get_size | ( | bpf_t * | bpf | ) |
Get size of a bpf.
| bpf | the bpf |
| double bpf_get_slope | ( | bpf_t * | bpf, | |
| int | index | |||
| ) |
Get slope of point at given index of a bpf.
| bpf | the bpf | |
| index | point index |
| double bpf_get_time | ( | bpf_t * | bpf, | |
| int | index | |||
| ) |
Get time of point at given index of a bpf.
| bpf | the bpf | |
| index | point index |
| double bpf_get_value | ( | bpf_t * | bpf, | |
| int | index | |||
| ) |
Get value of point at given index of a bpf.
| bpf | the bpf | |
| index | point index |
| FTS_API int bpf_insert_point | ( | bpf_t * | bpf, | |
| double | time, | |||
| double | value | |||
| ) |
Insert a new point with given time and value in a bpf.
| bpf | the bpf | |
| time | time of new point | |
| value | value of new point |
| FTS_API void bpf_set_point | ( | bpf_t * | bpf, | |
| int | index, | |||
| double | time, | |||
| double | value | |||
| ) |
Set point at given index.
| bpf | the bpf | |
| index | index of point | |
| time | set time | |
| value | set value |
| FTS_API void bpf_simplify | ( | bpf_t * | bpf | ) |
Remove redundant points from a bpf.
The function
| bpf | the bpf |
1.5.6