sampling_circle_2d

sampling.sampling_circle_2d(n_samples, radius=1)[source]

Generate random samples on a 2D circle with a specified radius.

Parameters
  • n_samples – int The number of random samples to generate on the circle.

  • radius – float, optional The radius of the circle. Default is 1.

Returns

list of tuple A list of tuples (x, y) representing the coordinates of the sampled points.

Note

The samples are uniformly distributed on the circle.