relife.utils.plot

relife.utils.plot

relife.utils.plot(x: numpy.ndarray, y: numpy.ndarray, se: Optional[numpy.ndarray] = None, alpha_ci: float = 0.05, bounds=(- inf, inf), **kwargs) None[source]

Plot a function with a confidence interval.

Parameters
  • x (1D array) – x-axis values.

  • y (np.ndarray) – y-axis values.

  • se (np.ndarray, optional) – The standard error, by default None.

  • alpha_ci (float, optional) – \(\alpha\)-value to define the \(100(1-\alpha)\%\) confidence interval, by default 0.05 corresponding to the 95% confidence interval. If set to None or if se is None, no confidence interval is plotted, by default 0.05.

  • bounds (tuple, optional) – Bounds for clipping the value of the confidence interval, by default (-np.inf, np.inf).

  • **kwargs (dict, optional) – Extra arguments to specify the plot properties (see matplotlib.pyplot.plot documentation).