class_docstr: Base pipeline to compare histogram to previous rolling histograms
class_docstr_tok: ["Base","pipeline","to","compare","histogram","to","previous","rolling","histograms"]
docstr: Initialize an instance of RollingHistComparer.
  
  :param func_hist_collector: histogram collection function
  :param str read_key: key of input data to read from data store
  :param str store_key: key of output data to store in data store
  :param str assign_to_key: key of the input data to assign function applied-output to. (optional)
  :param str hist_col: column/key in input df/dict that contains the histogram. default is 'histogram'
  :param str suffix: column/key of rolling histogram. default is 'roll' -> column = 'histogram_roll'
  :param args: (tuple, optional): residual args passed on to func_mean and func_std
  :param kwargs: (dict, optional): residual kwargs passed on to func_mean and func_std
docstr_tok: ["Initialize","an","instance","of","RollingHistComparer",".",":","param","func_hist_collector",":","histogram","collection","function",":","param","str","read_key",":","key","of","input","data","to","read","from","data","store",":","param","str","store_key",":","key","of","output","data","to","store","in","data","store",":","param","str","assign_to_key",":","key","of","the","input","data","to","assign","function","applied-output","to",".","(","optional",")",":","param","str","hist_col",":","column\/key","in","input","df\/dict","that","contains","the","histogram",".","default","is","'histogram'",":","param","str","suffix",":","column\/key","of","rolling","histogram",".","default","is","'roll","'","-",">","column","=","'histogram_roll'",":","param","args",":","(","tuple",",","optional",")",":","residual","args","passed","on","to","func_mean","and","func_std",":","param","kwargs",":","(","dict",",","optional",")",":","residual","kwargs","passed","on","to","func_mean","and","func_std"]
code: def __init__(
      self,
      func_hist_collector,
      read_key,
      store_key,
      assign_to_key=None,
      hist_col: str = "histogram",
      suffix: str = "comp",
      *args,
      **kwargs,
  ) -> None:
      """Initialize an instance of RollingHistComparer.
  
      :param func_hist_collector: histogram collection function
      :param str read_key: key of input data to read from data store
      :param str store_key: key of output data to store in data store
      :param str assign_to_key: key of the input data to assign function applied-output to. (optional)
      :param str hist_col: column/key in input df/dict that contains the histogram. default is 'histogram'
      :param str suffix: column/key of rolling histogram. default is 'roll' -> column = 'histogram_roll'
      :param args: (tuple, optional): residual args passed on to func_mean and func_std
      :param kwargs: (dict, optional): residual kwargs passed on to func_mean and func_std
      """
      if assign_to_key is None:
          assign_to_key = read_key
  
      # make reference histogram(s)
      hist_collector = ApplyFunc(
          apply_to_key=read_key,
          assign_to_key=assign_to_key,
      )
      hist_collector.add_apply_func(
          *args,
          func=func_hist_collector,
          entire=True,
          suffix=suffix,
          **kwargs,
      )
      # do histogram comparison
      hist_comparer = ApplyFunc(
          apply_to_key=assign_to_key,
          assign_to_key=store_key,
          apply_funcs=[
              {
                  "func": hist_compare,
                  "hist_name1": hist_col,
                  "hist_name2": hist_col + "_" + suffix,
                  "prefix": suffix,
                  "axis": 1,
              }
          ],
      )
  
      super().__init__(modules=[hist_collector, hist_comparer])
  
imports: import numpy
  import pandas
  from popmon.analysis.apply_func import ApplyFunc
  from popmon.analysis.functions import expand_norm_hist_mean_cov, expanding_hist, hist_sum, normalized_hist_mean_cov, relative_chi_squared, roll_norm_hist_mean_cov, rolling_hist
  from popmon.analysis.hist_numpy import check_similar_hists, get_consistent_numpy_entries, get_consistent_numpy_ndgrids
  from popmon.base import Pipeline
  from popmon.hist.hist_utils import COMMON_HIST_TYPES, is_numeric
label_desc: Use image node_id 1 to create a new HistComparer object from inherited base classes: Pipeline with example: obj = HistComparer(func_hist_collector, read_key, store_key, assign_to_key, hist_col, suffix)