fips.visualization.plot_error_norm#

fips.visualization.plot_error_norm(prior, posterior, truth, t=None, norm='l2', figsize=None)[source]#

Plot normed errors of prior and posterior against truth.

Parameters:
  • prior (ArrayLike or Vector or Block) – Prior estimates.

  • posterior (ArrayLike or Vector or Block) – Posterior estimates.

  • truth (ArrayLike or Vector or Block) – True values for comparison.

  • t (Iterable[float], optional) – Time or x-axis values. If None, uses integer indices.

  • norm ({'l2', 'l1', 'linf'}, default 'l2') – Norm type to use for error calculation.

  • figsize (tuple[float, float], optional) – Figure size (width, height) in inches.

Returns:

  • fig (matplotlib.figure.Figure) – The figure object.

  • ax (matplotlib.axes.Axes) – The axes object.