ABMEv_utils.jl 409 Bytes
Newer Older
1
"""
2
        generalised_gaussian(x::Number,mu::Number,sigma::Number,epsilon::Number)
3
"""
4
function generalised_gaussian(x::Number,mu::Number,sigma::Number,epsilon::Number)
Victor Boussange's avatar
Victor Boussange committed
5
6
7
8
        return exp( -.5 * ((x-mu) / sigma)^epsilon)
end

"""
9
        gaussian(x::Number,mu::Number,sigma::Number) = generalised_gaussian(x,mu,sigma,2)
Victor Boussange's avatar
Victor Boussange committed
10
"""
11
gaussian(x::Number,mu::Number,sigma::Number) = generalised_gaussian(x,mu,sigma,2.)