mgng.helpers module¶
Helper functions.
- mgng.helpers.lemniscate(rotation: float = 0.0, alpha: float = 1.0, num: int = 1000) → numpy.ndarray[source]¶
Sample a Bernoulli lemniscate.
Code shamelessly copied from here and here
- Parameters
rotation (float, optional) – Radian by which the function is rotated, by default 0.0
alpha (float, optional) – Scale factor of the lemniscate, by default 1.0
num (int, optional) – Number of samples, by default 1000
- Returns
2xnum numpy array
- Return type
np.ndarray
- mgng.helpers.get_dymmy_2D_data(n: int, std: float = 1.0, num: int = 1000) → numpy.ndarray[source]¶
Create dummy 2-D data from overlapping lemniscates.