@@ -83,7 +83,7 @@ int(::LightInterface, x) = errlight("int")
83
83
"""
84
84
classes(x)
85
85
86
- All the categorical elements with in the same pool as `x` (including `x`),
86
+ All the categorical elements with the same pool as `x` (including `x`),
87
87
returned as a list, with an ordering consistent with the pool $REQUIRE .
88
88
Here `x` has `CategoricalValue` or `CategoricalString` type, and `classes(x)`
89
89
is a vector of the same eltype. Note that `x in classes(x)` is always true.
@@ -277,24 +277,22 @@ const UNIVARIATE_FINITE_DOCSTRING =
277
277
"""
278
278
UnivariateFinite(classes, p)
279
279
280
- A discrete univariate distribution whose finite support is the elements of
281
- the vector `classes`, and whose corresponding probabilities are elements of
282
- the vector `p`, which must sum to one $REQUIRE . Here `classes` must have
283
- type `AbstractVector{<:CategoricalElement}` where
280
+ A discrete univariate distribution whose finite support is the elements of the
281
+ vector `classes`, and whose corresponding probabilities are elements of the
282
+ vector `p`, which must sum to one $REQUIRE . Here `classes` must have type
283
+ `AbstractVector{<:CategoricalElement}` where
284
284
285
285
CategoricalElement = Union{CategoricalValue,CategoricalString}
286
286
287
- and all classes are assumed to share the same categorical pool.
287
+ and all classes are assumed to share the same categorical pool.
288
288
289
289
UnivariateFinite(prob_given_class)
290
290
291
- A discrete univariate distribution whose finite support is the set of keys
292
- of the provided dictionary, `prob_given_class` $REQUIRE . The dictionary
293
- keys must be of type `CategoricalElement` (see above) and the dictionary
294
- values specify the corresponding probabilities.
295
- """
296
-
297
- """ $UNIVARIATE_FINITE_DOCSTRING """
291
+ A discrete univariate distribution whose finite support is the set of keys of
292
+ the provided dictionary, `prob_given_class` $REQUIRE . The dictionary keys must
293
+ be of type `CategoricalElement` (see above) and the dictionary values specify
294
+ the corresponding probabilities.
295
+ """
298
296
UnivariateFinite (d:: AbstractDict ) = UnivariateFinite (get_interface_mode (), d)
299
297
UnivariateFinite (c:: AbstractVector , p) =
300
298
UnivariateFinite (get_interface_mode (), c, p)
0 commit comments