Description Usage Arguments Details Value Examples

The integral is approximated by a rectangular method, using the values stored in matrix `density`

.

1 | ```
rect.integrate(density, npoints, eps)
``` |

`density` |
A |

`npoints` |
The number of grid nodes on the squared grid containing the desired triangle. |

`eps` |
Positive number: minimum distance from any node inside the simplex to the simplex boundary |

Integration is made with respect to the Lebesgue measure on the projection of the simplex onto the plane *(x,y): x > 0, y > 0, x+y < 1*.
It is assumed that `density`

has been constructed on a
grid obtained *via* function `discretize`

,
with argument `equi`

set to `FALSE`

and `npoints`

and `eps`

equal to those passed to `rect.integrate`

.

The value of the estimated integral of `density`

.

1 2 3 4 5 6 7 8 9 10 11 |

lbelzile/BMAmevt documentation built on June 13, 2019, 12:43 p.m.

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.