Skip to content

Commit

Permalink
move functions inside module
Browse files Browse the repository at this point in the history
  • Loading branch information
aviks committed Apr 7, 2013
1 parent dada43f commit 8ba532c
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 @@ -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)
Expand Down Expand Up @@ -1901,3 +1899,5 @@ end
function KL(P::UnivariateDistribution, Q::UnivariateDistribution)
expectation(P, x -> log(pdf(P,x)/pdf(Q,x)))
end

end #module

0 comments on commit 8ba532c

Please sign in to comment.