Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
example_plot_marginal Namespace Reference

Classes

class  DistSpec
 

Functions

LikelihoodMarginalConfig make_likelihood_cfg ()
 
float _safe_float (x)
 
np.ndarray _grid_from_ppf (dist, lo=0.001, hi=0.999, n=600)
 
np.ndarray _pdf (dist, np.ndarray xs)
 
np.ndarray _cdf (dist, np.ndarray xs)
 
Tuple[np.ndarray, np.ndarray] _ecdf (np.ndarray samples)
 
None plot_pdf_vs_samples (str name, dist, np.ndarray xs, np.ndarray samples, Optional[str] outpath=None)
 
None plot_cdf_theory_vs_empirical (str name, dist, np.ndarray xs, np.ndarray samples, Optional[str] outpath=None)
 
None plot_global_cdf_ppf_consistency (List[DistSpec] specs, int seed, Optional[str] outpath=None)
 
None main (bool show=True, Optional[str] outdir="marginal_plots", int seed=123, int n_samples=3500)
 

Variables

 show
 
 True
 
 outdir
 
 seed
 
 n_samples
 

Function Documentation

◆ _cdf()

np.ndarray example_plot_marginal._cdf (   dist,
np.ndarray  xs 
)
protected

Definition at line 61 of file example_plot_marginal.py.

◆ _ecdf()

Tuple[np.ndarray, np.ndarray] example_plot_marginal._ecdf ( np.ndarray  samples)
protected

Definition at line 65 of file example_plot_marginal.py.

◆ _grid_from_ppf()

np.ndarray example_plot_marginal._grid_from_ppf (   dist,
  lo = 0.001,
  hi = 0.999,
  n = 600 
)
protected
Grille x basée sur des quantiles (robuste et adapté à la distrib).

Definition at line 43 of file example_plot_marginal.py.

◆ _pdf()

np.ndarray example_plot_marginal._pdf (   dist,
np.ndarray  xs 
)
protected

Definition at line 56 of file example_plot_marginal.py.

◆ _safe_float()

float example_plot_marginal._safe_float (   x)
protected

Definition at line 36 of file example_plot_marginal.py.

◆ main()

None example_plot_marginal.main ( bool   show = True,
Optional[str]   outdir = "marginal_plots",
int   seed = 123,
int   n_samples = 3500 
)

Definition at line 173 of file example_plot_marginal.py.

◆ make_likelihood_cfg()

LikelihoodMarginalConfig example_plot_marginal.make_likelihood_cfg ( )
Likelihood synthétique (mélange de 2 gaussiennes) sur une grille.

Definition at line 21 of file example_plot_marginal.py.

◆ plot_cdf_theory_vs_empirical()

None example_plot_marginal.plot_cdf_theory_vs_empirical ( str  name,
  dist,
np.ndarray  xs,
np.ndarray  samples,
Optional[str]   outpath = None 
)

Definition at line 109 of file example_plot_marginal.py.

◆ plot_global_cdf_ppf_consistency()

None example_plot_marginal.plot_global_cdf_ppf_consistency ( List[DistSpec specs,
int  seed,
Optional[str]   outpath = None 
)

Definition at line 141 of file example_plot_marginal.py.

◆ plot_pdf_vs_samples()

None example_plot_marginal.plot_pdf_vs_samples ( str  name,
  dist,
np.ndarray  xs,
np.ndarray  samples,
Optional[str]   outpath = None 
)

Definition at line 71 of file example_plot_marginal.py.

Variable Documentation

◆ n_samples

example_plot_marginal.n_samples

Definition at line 214 of file example_plot_marginal.py.

◆ outdir

example_plot_marginal.outdir

Definition at line 214 of file example_plot_marginal.py.

◆ seed

example_plot_marginal.seed

Definition at line 214 of file example_plot_marginal.py.

◆ show

example_plot_marginal.show

Definition at line 214 of file example_plot_marginal.py.

◆ True

example_plot_marginal.True

Definition at line 214 of file example_plot_marginal.py.