Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new testing framework for univariate distributions #314

Merged
merged 12 commits into from
Nov 21, 2014
Merged
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ julia 0.3-
ArrayViews 0.4.8-
PDMats 0.3.1-
StatsBase 0.6.10-
JSON
2 changes: 1 addition & 1 deletion src/univariate/continuous/erlang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ immutable Erlang <: ContinuousUnivariateDistribution
new(int(shape), float64(scale), Gamma(shape, scale))
end

Erlang(scale::Real) = Erlang(scale, 1.0)
Erlang(shape::Real) = Erlang(shape, 1.0)
Erlang() = Erlang(1, 1.0)
end

Expand Down
2 changes: 1 addition & 1 deletion src/univariate/continuous/pareto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ immutable Pareto <: ContinuousUnivariateDistribution
end

Pareto() = Pareto(1.0, 1.0)
Pareto(scale::Real) = Pareto(scale, 1.0)
Pareto(shape::Real) = Pareto(shape, 1.0)

@distr_support Pareto d.scale Inf

Expand Down
1 change: 1 addition & 0 deletions src/univariate/discrete/negativebinomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ immutable NegativeBinomial <: DiscreteUnivariateDistribution
new(float64(r), float64(p))
end

NegativeBinomial(r::Real) = NegativeBinomial(r, 0.5)
NegativeBinomial() = new(1.0, 0.5)
end

Expand Down
73 changes: 0 additions & 73 deletions test/continuous_ref.csv

This file was deleted.

Loading