Description Usage Arguments Value Examples

Find mean of a probability density function

1 2 |

`dist` |
A one-argument function returned from |

`l` |
Lower bound of the density's support |

`r` |
Upper bound of the density's support |

A scalar

1 2 | ```
d1 <- update_prior(10, 40, P = 5/6, prior = stats::dunif)
dist_mean(d1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.