You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Das-like function with exponential right tail (#42)
* Revert "delete das-function, focused on CB"
Adds das-like function implementations back
* Refactorized Crystal-Ball/Das Function
* Deleted json setting
* added to gitignore
* Removed old comment
---------
Co-authored-by: Robert Hentges <robert.hentges@cern.ch>
The Double-sided Bifurcated Crystal Ball/Das distribution is a probability distribution commonly used in high-energy physics
22
+
to model various lossy processes. It extends the Bifurcated Gaussian distribution by adding a power-law tail on the left side and an exponential tail on the right side
23
+
of the asymmetric Gaussian core.
24
+
25
+
The distribution consists of:
26
+
- A left power-law tail for x < xL
27
+
- A bifurcated Gaussian core for xL ≤ x ≤ xR
28
+
- A right exponential tail for x > xR
29
+
30
+
The bifurcated Gaussian core uses different scale parameters on the left (σL) and right (σR) sides of the mean μ,
31
+
controlled by the asymmetry parameter ψ via κ = tanh(ψ), where σL = σ(1 + κ) and σR = σ(1 - κ).
32
+
33
+
# Arguments
34
+
- `μ`: The mean of the bifurcated Gaussian core.
35
+
- `σ`: The base scale parameter of the bifurcated Gaussian core. Must be positive.
36
+
- `ψ`: The asymmetry parameter controlling the difference between left and right scales via κ = tanh(ψ).
37
+
- `αL`: The left transition point parameter, defining where the left power-law tail begins (in units of σL). Must be positive.
38
+
- `nL`: The exponent parameter for the left power-law tail. Must be positive. The effective exponent is NL = √(1 + nL²) > 1.
39
+
- `αR`: The right transition point parameter, defining where the right exponential tail begins (in units of σR). Must be positive.
40
+
41
+
The transition points are calculated as:
42
+
- xL = μ - αL * σL (left transition)
43
+
- xR = μ + αR * σR (right transition)
44
+
45
+
The struct stores precomputed constants for efficient PDF, CDF, and quantile calculations.
46
+
47
+
# Example
48
+
```julia
49
+
using DistributionsHEP
50
+
using Plots
51
+
52
+
# Create a double-sided bifurcated crystal ball distribution
0 commit comments