ABMEv_utils.jl 331 Bytes
Newer Older
Victor Boussange's avatar
Victor Boussange committed
1
2
3
4
5
6
7
8
9

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.)