Skip to content

Commit

Permalink
Fix isupport() to be insupport()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmyleswhite committed Mar 19, 2013
1 parent 70b21c0 commit a20fd87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Distributions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ const Biexponential = Laplace
function cdf(d::Laplace, q::Real)
0.5 * (1.0 + sign(q - d.location) * (1.0 - exp(-abs(q - d.location) / d.scale)))
end
isupport(d::Laplace, x::Number) = real_valued(x) && isfinite(x)
insupport(d::Laplace, x::Number) = real_valued(x) && isfinite(x)
kurtosis(d::Laplace) = 3.0
mean(d::Laplace) = d.location
median(d::Laplace) = d.location
Expand Down Expand Up @@ -996,7 +996,7 @@ var(d::Logistic) = (pi*d.scale)^2/3.
std(d::Logistic) = pi*d.scale/sqrt(3.)
skewness(d::Logistic) = 0.
kurtosis(d::Logistic) = 1.2
isupport(d::Logistic, x::Number) = real_valued(x) && isfinite(x)
insupport(d::Logistic, x::Number) = real_valued(x) && isfinite(x)

immutable logNormal <: ContinuousUnivariateDistribution
meanlog::Float64
Expand Down

0 comments on commit a20fd87

Please sign in to comment.