Skip to content

Noise Model

Source

Noise Model plotting utilities.

plot_noise_model_distribution(noise_model, signal_bin_index, histogram, channel=None, number_of_bins=100, save_path=None)

Plot probability distribution P(x|s) for a certain ground truth signal.

Predictions from both Histogram and GMM-based Noise models are displayed for comparison.

Parameters:

  • noise_model (GaussianMixtureNoiseModel) –

    Trained GaussianMixtureNoiseModel.

  • signal_bin_index (int) –

    Index of signal bin. Values go from 0 to number of bins (n_bin).

  • histogram (NDArray) –

    Histogram based noise model.

  • channel (Optional[str], default: None ) –

    Channel name used for plotting. Default is None.

  • number_of_bins (int, default: 100 ) –

    Number of bins in the resulting histogram. Default is 100.

  • save_path (Path | str | None, default: None ) –

    Path to save the figure. If None, the figure will not be saved. Default is None.