cbx.utils.resampling.resampling#
- class cbx.utils.resampling.resampling(resamplings, apply=None, sigma_indep=0.1, var_name='x')[source]#
Bases:
object
Resamplings from a list of callables
- Parameters:
resamplings (list) – The list of resamplings to apply. Each entry should be a callable that accepts exactly one argument (the dynamic object) and returns a one-dimensional numpy array of indices.
apply (Callable) –
dyn
: The dynmaic which the resampling is applied to.idx
: List of indices that are resampled.
The function that should be performed on a given dynamic for selected indices. This function has to have the signature apply(dyn,idx).