Commit 6d18d42a authored by Victor Boussange's avatar Victor Boussange
Browse files

added utils

parent 1af8ceb3
function generalised_gaussian(x::Float64,mu::Float64,sigma::Float64,epsilon::Float64)
return exp( -.5 * ((x-mu) / sigma)^epsilon)
end
"""
gaussian(x::Float64,mu::Float64,sigma::Float64) = generalised_gaussian(x,mu,sigma,2)
"""
gaussian(x::Float64,mu::Float64,sigma::Float64) = generalised_gaussian(x,mu,sigma,2.)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment