swarmsim.util.statistics_tools#

Functions

abs_fwd_timegraph(list_, s)

constrain(x, in_min, in_max)

Constrain input value between in_min and in_max.

fmap(x, in_min, in_max, out_min, out_max)

Given a set of ranges, remap x to a new set of ranges.

get_average_value(avg_list[, input, index])

imap(x, in_min, in_max, out_min, out_max)

Given a set of ranges, remap x to a new set of ranges.

linreg_past(x, y, n[, compute_correlation])

mean(m)

Classes

Average([max_len, threshold])

FIFO moving average.

AverageCustom(accessors[, max_len])

Fifo averager that allows usage of custom accessor function.

Deadzone(radius[, center, min_out, max_out])

Return center value if in deadzone radius (inclusive)

Delay([delay, threshold])

FIRFilter(filter[, threshold, fill])

FloatingBool(*args, **kwargs)

float that can collapse into a boolean value based on activation

Remap(in_points, out_points)