From 8ba532cf90603028b341066044ddbc14031dd5f0 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Sun, 7 Apr 2013 17:21:21 +0200 Subject: [PATCH] move functions inside module --- src/Distributions.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Distributions.jl b/src/Distributions.jl index 7b9d29c6d..3b2ffd514 100644 --- a/src/Distributions.jl +++ b/src/Distributions.jl @@ -1866,8 +1866,6 @@ include("show.jl") include("fit.jl") -end #module - function getEndpoints(distr::UnivariateDistribution, epsilon::Real) (left,right) = map(x -> quantile(distr,x), (0,1)) leftEnd = left!=-Inf ? left : quantile(distr, epsilon) @@ -1901,3 +1899,5 @@ end function KL(P::UnivariateDistribution, Q::UnivariateDistribution) expectation(P, x -> log(pdf(P,x)/pdf(Q,x))) end + +end #module