def __init__(self, time_series, baseline_time_series=None, precision=None,
                 lag_window_size=None, future_window_size=None, chunk_size=None):
        """
        Initializer
        :param TimeSeries time_series: a TimeSeries object.
        :param TimeSeries baseline_time_series: baseline TimeSeries.
        :param int precision: how many sections to categorize values.
        :param int lag_window_size: lagging window size.
        :param int future_window_size: future window size.
        :param int chunk_size: chunk size.
        """
        super(BitmapDetector, self).__init__(self.__class__.__name__, time_series, baseline_time_series)
        self.precision = precision if precision and precision > 0 else DEFAULT_BITMAP_PRECISION
        self.chunk_size = chunk_size if chunk_size and chunk_size > 0 else DEFAULT_BITMAP_CHUNK_SIZE
        if lag_window_size:
            self.lag_window_size = lag_window_size
        else:
            self.lag_window_size = int(self.time_series_length * DEFAULT_BITMAP_LAGGING_WINDOW_SIZE_PCT)
        if future_window_size:
            self.future_window_size = future_window_size
        else:
            self.future_window_size = int(self.time_series_length * DEFAULT_BITMAP_LEADING_WINDOW_SIZE_PCT)
        self._sanity_check()
def __init__ ( self , time_series , baseline_time_series = None , precision = None , lag_window_size = None , future_window_size = None , chunk_size = None ) : super ( BitmapDetector , self ) . __init__ ( self . __class__ . __name__ , time_series , baseline_time_series ) self . precision = precision if precision and precision > 0 else DEFAULT_BITMAP_PRECISION self . chunk_size = chunk_size if chunk_size and chunk_size > 0 else DEFAULT_BITMAP_CHUNK_SIZE if lag_window_size : self . lag_window_size = lag_window_size else : self . lag_window_size = int ( self . time_series_length * DEFAULT_BITMAP_LAGGING_WINDOW_SIZE_PCT ) if future_window_size : self . future_window_size = future_window_size else : self . future_window_size = int ( self . time_series_length * DEFAULT_BITMAP_LEADING_WINDOW_SIZE_PCT ) self . _sanity_check ( )
Initializer
        :param TimeSeries time_series: a TimeSeries object.
        :param TimeSeries baseline_time_series: baseline TimeSeries.
        :param int precision: how many sections to categorize values.
        :param int lag_window_size: lagging window size.
        :param int future_window_size: future window size.
        :param int chunk_size: chunk size.