Description Usage Arguments Examples
The generated data Y ~ Bernoulli(p) is the image intensity, where the success probability p is determined by whether the location X, given by polar coords (r,θ), is inside the boundary or not.
1 | par2obs(m, pi.in, pi.out, design, center, gamma.fun)
|
m |
m * m observations will be generated over the unit square centered at (0,0). |
pi.in |
The success probability, P(Y_i = 1), where Y_i is intensity of pixel i if the location is inside the boundary. |
pi.out |
The success probability, P(Y_i = 1), where Y_i is intensity of pixel i if the location is outside the boundary. |
design |
Taking values: 'D' for deterministic (equally-spaced grid) design, 'U' for completely uniformly random, or 'J' for jitteredly random design. |
center |
a two-dimensional vector of Euclidean coordinates (x,y) of the reference point. |
gamma.fun |
The function to generate boundaries, see ellipse or triangle2. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.