Skip to content

Commit 95e552d

Browse files
committed
Set minimum of OrderedLogistic distribution to 1
The minimum of the OrderedLogistic function is supposed to be 1, not 0. This is consistent with the documentation, and the behavior of the distribution when using rand().
1 parent 7ebde76 commit 95e552d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib/distributions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function OrderedLogistic(η, cutpoints::AbstractVector)
126126
return OrderedLogistic{typeof(η),typeof(cutpoints)}(η, cutpoints)
127127
end
128128

129-
Base.minimum(d::OrderedLogistic) = 0
129+
Base.minimum(d::OrderedLogistic) = 1
130130
Base.maximum(d::OrderedLogistic) = length(d.cutpoints) + 1
131131

132132
function Distributions.logpdf(d::OrderedLogistic, k::Real)

0 commit comments

Comments
 (0)