@@ -264,25 +264,28 @@ _squeeze(v) = first(v)
264
264
# ------------------------------------------------------------------------
265
265
# UnivariateFinite
266
266
267
- """
268
- UnivariateFinite(classes, p)
267
+ const UNIVARIATE_FINITE_DOCSTRING =
268
+ """
269
+ UnivariateFinite(classes, p)
269
270
270
- A discrete univariate distribution whose finite support is the elements of the
271
- vector `classes`, and whose corresponding probabilities are elements of the
272
- vector `p`, which must sum to one $REQUIRE .. Here `classes` must have type
273
- `AbstractVector{<:CategoricalElement}` where
271
+ A discrete univariate distribution whose finite support is the elements of
272
+ the vector `classes`, and whose corresponding probabilities are elements of
273
+ the vector `p`, which must sum to one $REQUIRE . Here `classes` must have
274
+ type `AbstractVector{<:CategoricalElement}` where
274
275
275
- CategoricalElement = Union{CategoricalValue,CategoricalString}
276
+ CategoricalElement = Union{CategoricalValue,CategoricalString}
276
277
277
- and all classes are assumed to share the same categorical pool.
278
+ and all classes are assumed to share the same categorical pool.
278
279
279
- UnivariateFinite(prob_given_class)
280
+ UnivariateFinite(prob_given_class)
280
281
281
- A discrete univariate distribution whose finite support is the set of keys of
282
- the provided dictionary, `prob_given_class` $REQUIRE .. The dictionary keys must
283
- be of type `CategoricalElement` (see above) and the dictionary values specify
284
- the corresponding probabilities.
285
- """
282
+ A discrete univariate distribution whose finite support is the set of keys
283
+ of the provided dictionary, `prob_given_class` $REQUIRE . The dictionary
284
+ keys must be of type `CategoricalElement` (see above) and the dictionary
285
+ values specify the corresponding probabilities.
286
+ """
287
+
288
+ """ $UNIVARIATE_FINITE_DOCSTRING """
286
289
UnivariateFinite (d:: AbstractDict ) = UnivariateFinite (get_interface_mode (), d)
287
290
UnivariateFinite (c:: AbstractVector , p) =
288
291
UnivariateFinite (get_interface_mode (), c, p)
0 commit comments