bucky.util.fractional_slice#

Utility to fractionally slice an xp array, keeping the fractional part between the int indices.

Module Contents#

Functions#

frac_last_n_vals(arr, n, axis=0, offset=0)

Return the last n values of an array; if n is a float, including fractional amounts.

bucky.util.fractional_slice.frac_last_n_vals(arr, n, axis=0, offset=0)[source]#

Return the last n values of an array; if n is a float, including fractional amounts.