rtri | R Documentation |
Takes a sample from a distribution which is a linear function over a triangle
rtri(n, h1, h2, h3)
n |
number of points to generate |
h1, h2, h3 |
weights in corners of triangle |
ret = rtri(1000, 1, 0, 0)
plot(ret$w1, ret$w2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.