| is_mixture | R Documentation |
mixture distribution.Test whether an object is a mixture distribution.
is_mixture(x)
x |
The object to test. |
TRUE if x inherits from "mixture",
FALSE otherwise.
m <- mixture(list(normal(0, 1), normal(5, 2)), c(0.5, 0.5))
is_mixture(m)
is_mixture(normal(0, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.