slmsuite.misc.fitfunctions.tophat2d
- tophat2d(xy, x0, y0, r, a=1)[source]
For fitting a 2D tophat distribution.
- Parameters
xy (numpy.ndarray) – Points to fit upon (x, y).
x0 (float) – Vector offset.
y0 (float) – Vector offset.
r (float) – Active radius of the tophat.
a (float) – Amplitude.
- Returns
z – Tophat fit evaluated at all
(x,y)
inxy
.- Return type
numpy.ndarray