def detect_mean_shift(self, ts, B=<NUM_LIT:1000>):
x = np.arange(<NUM_LIT:0>, len(ts))<EOL>stat_ts_func = self.compute_balance_mean_ts<EOL>null_ts_func = self.shuffle_timeseries<EOL>stats_ts, pvals, nums = self.get_ts_stats_significance(x, ts, stat_ts_func, null_ts_func, B=B, permute_fast=True)<EOL>return stats_ts, pvals, nums<EOL>
Detect mean shift in a time series. B is number of bootstrapped
            samples to draw.