' '

1. Definition

A stratified sampler takes two parameter \(N\) and \(M\). Given a rectangle to be sampled, it subdivides this rectangle into \(N \times M\) subrectangles of equal size. The sampler then returns the center point of each of these rectangles.

sampler

2. Comparison

n = 1

demo1

n = 2

demo2

n = 3

demo3

n = 4

demo4