File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -73,21 +73,3 @@ function clamp end
7373
7474bounds (i:: AbstractInterval ) = (infimum (i), supremum (i))
7575Base. clamp (x, i:: AbstractInterval ) = IntevalSets. clamp (x, i)
76-
77-
78- # Treat distributions as spaces
79- function SpaceStyle (d:: T ) where {T <: Distribution }
80- return Distributions. value_support (d) == Discrete ? FiniteSpaceStyle : ContinuousSpaceStyle
81- end
82-
83- Base. in (x, d:: Distribution ) = insupport (d, x)
84-
85- function Base. clamp (x, d:: Distribution )
86- @assert SpaceStyle (d) == Continuous " clamp requires a ContinuousSpaceStyle"
87- return clamp .(x, extrema (d)... )
88- end
89-
90- function bounds (d:: Distribution )
91- @assert SpaceStyle (d) == Continuous " Bounds requires a ContinuousSpaceStyle"
92- return extrema (d)
93- end
You can’t perform that action at this time.
0 commit comments