2
votes
2answers
43 views

Sampling from the diamond: $|x_1|+\ldots+|x_n| \le 1$?

Let $\left(x_1, \ldots, x_n \right)$ be a point in $\mathbb R^n$. Sample uniformly at random from the diamond $$ |x_1|+\ldots+|x_n| \le 1. $$ In $\mathbb R^2$, one way is to sample the square, then ...
1
vote
1answer
46 views

Non-uniform sampling of N-sphere

Suppose I have a unit $N$-sphere from which I want to draw points at random. To obtain uniformly distributed points I do the usual technique of drawing $N$ random variables $x_i$ from a Gaussian ...
1
vote
1answer
22 views

Sampling on Axis-Aligned Spherical Quad

Given spherical coordinates on a unit sphere, imagine a spherical quad defined by two ranges $[\phi_0,\phi_1]$ and $[\theta_0,\theta_1]$. If you have a globe, for example, the grid formed by the ...
1
vote
1answer
80 views

Sample uniform direction within cone

My question is pretty much the same as this question below, however I came up with a potential solution to this problem that I didn't see an answer to in the other question and I was wondering if it ...
0
votes
1answer
8 views

Uniform sampling from part of sphere surface

I'd like to pose a question about uniform sampling on the surface of a sphere. I searched this site, and uniform sampling on a sphere surface seems to be quite a common problem. The common solution ...
1
vote
3answers
119 views

Sample of a subset of a plane

I have the equation of a plane $ax+bx+cx+d$ and a point $(x_0, y_0, z_0)$ on that plane. I defined the neighborhood of that point on that plane as the set of points satisfying $(x-x_0)^2 + (y-y_0)^2 ...
1
vote
0answers
37 views

Sphere on a grid

So, this is a little tricky kind of a question and I'm not totally sure if it's a mathematic question or a more programming one, but I nevertheless hope to find answers. I want to find out the error ...
1
vote
0answers
40 views

Uniformly sample points over a circular patch of a sphere without rejection [duplicate]

Possible Duplicate: Generate a random direction within a cone A point on a unit sphere $(x,y,z)$ and an maximal angular separation $\theta$ defines a patch with an area of $\Omega = 2 \pi ...
4
votes
1answer
87 views

Samples in the convex body vs. samples on the convex surface

Let $K$ be a bounded convex body in $\mathbb{R}^n$. Suppose we have a sampler $\mathcal{S}_1$ that can generate points uniformly distributed in $\mathrm{int}K$, and another sampler $\mathcal{S}_2$ ...