has_converged_by_relative_tolerance

has_converged_by_relative_tolerance(values, rtol=0.01, window=5)[source]

Returns True if the relative change between consecutive values is below epsilon for the last window steps.