Functions | |
void | guess_tsim_index (double request_tsim, double *tsim_save, int min_ind, int max_ind, double min_tsim, double max_tsim, int buffer_size, int flag_round, int *prev_ind, int *next_ind) |
get the indexes for a requested time on a turning vector of time values More... | |
void guess_tsim_index | ( | double | request_tsim, |
double * | tsim_save, | ||
int | min_ind, | ||
int | max_ind, | ||
double | min_tsim, | ||
double | max_tsim, | ||
int | buffer_size, | ||
int | flag_round, | ||
int * | prev_ind, | ||
int * | next_ind | ||
) |
get the indexes for a requested time on a turning vector of time values
[in] | request_tsim | requested simulation time [s] |
[in] | tsim_save | vector with past simulation time values [s] |
[in] | min_ind | index of tsim_save corresonding to the minimal time value |
[in] | max_ind | index of tsim_save corresonding to the maximal time value |
[in] | min_tsim | minimal time value [s] |
[in] | max_tsim | maximal time value [s] |
[in] | buffer_size | size of tsim_save |
[in] | flag_round | 1 if tsim_save already filled, 0 otherwise |
[out] | prev_ind | index before the requested time |
[out] | next_ind | index after the requested time |