mean_edges

threadcount.models.mean_edges(y, x=None, edge_fraction=0.1)[source]

Compute the mean of the outer points of y.

Mean the first and last n points in y, where n is given by len(y)*edge_fraction

An edge_fraction = 0 will return the mean of the first and last points. An edge_fraction = 0.5 will return the mean of all y.