iCLIP.random.bootstrap¶
-
iCLIP.random.bootstrap(x, bootstraps, fun, *args, **kwargs)¶ Calculate bootstraps a function operating on a Series.
Draw samples with replacement from x with replacement and apply fun . Do this bootstrap times.
Parameters: - x (pandas.Series or pandas.DataFrame) – pandas object to bootstrap and apply function to.
- bootstraps (int) – How many bootstrap samples to draw
- fun (func) – Function to apply to the bootstraps resamples of x. x will be passed as the first argument.
- **kwargs (*args,) –
Further arguments and keyword arguments passed on to fun.
Returns: Each entry in the Series will be the result of applying fun to a bootstrap sample from x.
Return type: pandas.Series of same type as
fun(x)See also
boot_ci()- Calculate confidence intervals by bootstrapping