nearest_neighbors_err_at_time_or_it#
- post_processors.nearest_neighbors_err_at_time_or_it(time_stamps=None, it_stamps=None, err_name='errors', time_name='timings')#
Adds to dataframe df columns
err_at_time_xxorerr_at_it_xxcontaining an estimation of errors at given time points or iteration valuesxx. The estimation is performed for theerr_at_time_xxcolumn using the nearest neighbor error value.For a more precise interpolation, check out the
interpolate_time_and_errorfunction.- Parameters:
df (pandas dataframe) – A dataframe containing an
err_namecolumn and atime_namecolumntime_stamps (list, optional) – a list of values at which the column
err_nameshould be evaluated, by default Noneit_stamps (list, optional) – a list of indices at which the column
err_nameshould be evaluated, by default Noneerr_name (str, optional) – the name of the error column in df, by default
errorstime_name (str, optional) – the name of the timings columns in df, by default
timings
- Returns:
df – the input dataframe with appended columns
err_at_time_xxorerr_at_it_xx.- Return type:
pandas dataframe