Questions tagged [sampling]
50 questions
5
votes
3 answers
Sample over a matrix
Assume I have a matrix.
mat = {{1, 1, 8, 3, 5}, {2, 2, 6, 5, 3}, {3, 3, 9, 2, 7}, {4, 4, 7, 1,
7}, {5, 5, 3, 6, 8}, {6, 6, 8, 7, 7}, {7, 7, 2, 4, 4}, {8, 8, 9,
1, 6}, {9, 9, 1, 1, 2}, {10, 10, 2, 1, 6}, {11, 11, 6, 2, 4}, {12,
12, 9,…
OkkesDulgerci
- 10,716
- 1
- 19
- 38
3
votes
4 answers
Sampling Implicit functions
Consider an implicit function like f
dist[x_, y_] = Sqrt[(x - #1)^2. + (y - #2)^2.] &
f[x_, y_] = dist[-1, 0][x, y] dist[1, 0][x, y]
How to sample points on f[x,y]==c without explicitly solving for y?
f[x,y]==c is a Cassini oval and looks…
lineage
- 1,144
- 4
- 10
1
vote
2 answers
Sampling an inequality over multi-dimensional space
Let's say I have two functions $f(x,y,z), g(x,y,z)$. I would like to know the probability that $f(x,y,z) < g(x,y,z)$ over some defined, numerical ranges of $x, y, z$.
Any thoughts on how to do it besides nested for-loops?
P.S. I have more than 3…
John Smith
- 173
- 5
0
votes
3 answers
Sample the data with equal step size
I have the data below. I would like to sample with equal step size. For simplicity lets try unit step size. Here is the desired result. Find the first time exceed the unit time step, and take lower ones second entry. …
OkkesDulgerci
- 10,716
- 1
- 19
- 38