LandauDistribution.jl

Extending `Distributions.jl` to include Landau Distribution based on CERN ROOT's implementation.
Author JuliaHEP
Popularity
8 Stars
Updated Last
1 Year Ago
Started In
August 2021

LandauDistribution

Build Status Coverage

Example

julia> using Distributions, LandauDistribution

julia> L = Landau(1.0)
Landau{Float64}=1.0, θ=1.0)

julia> pdf(L, 4)
0.07424765455676448

julia> cdf(L, 4)
0.6642059976988449

julia> L = Landau(1.5, 2)
Landau{Float64}=1.5, θ=2.0)

julia> rand(L)
-0.8439427644712922

Used By Packages