pyphysim.pointprocess package

Submodules

pyphysim.pointprocess.pointprocess module

pyphysim.pointprocess.pointprocess.generate_random_points_in_circle(num_points: int, max_radius: float, min_radius: float = 0.0)numpy.ndarray[source]

Generate numPoints points uniformly inside a circle of radius max_radius and outside a circle with radius min_radius

The circle center is at the origin.

Parameters
  • num_points – The desired number of points

  • max_radius – The circle radius

  • min_radius – The minimum radius

Returns

The random points inside the circle.

Return type

np.ndarray

pyphysim.pointprocess.pointprocess.generate_random_points_in_rectangle(num_points: int, width: float, height: float)[source]

Generate num_points points uniformly inside a rectangle.

The rectangle center is at the origin.

Parameters
  • num_points – The desired number of points

  • width – The rectangle width

  • height – The rectangle height

Returns

The random points inside the circle.

Return type

np.ndarray

Module contents