summ_prob_true | R Documentation |
Here summ_prob_false()
returns a probability of 0 and summ_prob_true()
-
complementary probability (one minus summ_prob_false()
output). Both of
them check if their input is a boolean pdqr-function: type "discrete"
with x
in x_tbl
identical to c(0, 1)
. If it is not, warning is thrown.
summ_prob_false(f)
summ_prob_true(f)
f |
A pdqr-function representing distribution. |
A single numeric value representing corresponding probability.
Other summary functions:
summ_center()
,
summ_classmetric()
,
summ_distance()
,
summ_entropy()
,
summ_hdr()
,
summ_interval()
,
summ_moment()
,
summ_order()
,
summ_pval()
,
summ_quantile()
,
summ_roc()
,
summ_separation()
,
summ_spread()
d_unif <- as_d(dunif)
d_norm <- as_d(dnorm)
summ_prob_true(d_unif > d_norm)
summ_prob_false(2 * d_norm > d_unif)
# When input is "continuous" function or doesn't have 0 as distribution
# element, probability of being false is returned as 0.
summ_prob_false(d_unif)
summ_prob_true(new_d(2, "discrete"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.