-
Notifications
You must be signed in to change notification settings - Fork 0
plot_pdf
Cristel Chandre edited this page Jun 20, 2025
·
4 revisions
Plots the probability density function (PDF) of the system state X and its transformed version Y = φ(X), comparing them with a Gaussian fit.
-
sol: AOdeSolutionsolution object (such as returned bysolve_ivporsolve_ivp_symp) containing the time evolution of the system.
This function performs the following steps:
- Flattens and standardizes the state
X(t)and its transformed counterpartY(t) = φ(X)using z-scores. - Estimates their PDFs using Gaussian kernel density estimation (KDE).
- Computes a Gaussian fit (mean and standard deviation) for
X(t). - Plots the PDFs of
X,Y, and the Gaussian fit on a logarithmic y-axis for better visibility of tails.
- KDE estimates for
XandY. - Dashed red line for the Gaussian fit of
X. - Log-scaled y-axis ranging from
1e-4to1.
- Useful for checking non-Gaussian features or symmetry properties of the system's state distribution.
HamLorenz is developed under BSD 2-Clause License, Copyright(c) 2025 cristel.chandre@cnrs.fr