ARLTheoretical

ARLTheoretical

@author: smriti.prathapan

package.ARLTheoretical.get_ARL_1(h: float, shift_in_mean: list[float], dict_ARL0_k: OrderedDict) DataFrame

Get the ARL1 along with k values.

Parameters:
  • h (float) – Normalized threshold.

  • shift_in_mean (list[float]) – List of the values of shift in mean.

  • dict_ARL0_k (OrderedDict) – Data dictionary of ARL0 and k

Returns:

Table for ARL1 and k values.

Return type:

pd.DataFrame

package.ARLTheoretical.get_ARL_1_h_mu1_k(h: float, k: float, mu1: float) float

Calculate ARL_1 with given Shift in Mean (mu1) and k.

Parameters:
  • h (float) – Normalized threshold.

  • k (float) – Normalized reference value.

  • mu1 (float) – Intended shift in mean.

Returns:

Detection delay (ARL1).

Return type:

float

package.ARLTheoretical.get_ref_value(h: float, list_ARL_0: list[float]) tuple[DataFrame, OrderedDict]

provides normalized reference values k for provided list of ARL0, given the value of normalized threshold h.

Parameters:
  • h (float) – Normalized threshold.

  • list_ARL_0 (list) – List of ARL0 values.

Returns:

Dataframe of ARL0 and k, Data dictionary of ARL0 and k; where k is normalized reference value.

Return type:

tuple[pd.Dataframe, OrderedDict]

package.ARLTheoretical.get_ref_value_k(h: float, ARL_0: float) float

Calculation for the reference value for given h and ARL_0.

Parameters:
  • h (float) – Normalized threshold.

  • ARL_0 (float) – ARL0 value.

Returns:

Normalized reference value k.

Return type:

float