hb_method module

class HBMethod(get_data_func, time_units, varselector_variable='statistikkvariabel', output='ident')

Bases: object

Module for implementing the HB method for finding outliers.

Parameters:
  • get_data_func (Callable[[...], Any])

  • time_units (list[str])

  • varselector_variable (str)

  • output (str)

get_default_parameter_values()

Gets the default parameter values.

Return type:

None

abstractmethod layout()

Define the layout for the HBMethod module.

This is an abstract method that must be implemented by subclasses to define the module’s layout.

Returns:

A Dash HTML Div component representing the layout of the module.

Return type:

html.Div

make_hb_figure(time_unit, *args)

Runs the HB method and creates the plot showing the results.

Return type:

Figure

Parameters:
  • time_unit (str)

  • args (Any)

module_callbacks()

Registers the callbacks for the module.

Return type:

None

class HBMethodTab(get_data_func, time_units, varselector_variable='statistikkvariabel', output='ident')

Bases: TabImplementation, HBMethod

Module for implementing the HB method for finding outliers, in a tab format.

Parameters:
  • get_data_func (Callable[[...], Any])

  • time_units (list[str])

  • varselector_variable (str)

  • output (str)

class HBMethodWindow(get_data_func, time_units, varselector_variable='statistikkvariabel', output='ident')

Bases: WindowImplementation, HBMethod

Module for implementing the HB method for finding outliers, in a window format.

Parameters:
  • get_data_func (Callable[[...], Any])

  • time_units (list[str])

  • varselector_variable (str)

  • output (str)