Skip to content

functions

tergite_autocalibration.lib.utils.functions

Functions:

Name Description
exponential_decay_function

Exponential decay function.

isosceles_triangle

Returns the coordinates of three points defining an isosceles triangle.

exponential_decay_function

exponential_decay_function(m: float, p: float, A: float, B: float) -> float

Exponential decay function. :param m: Exponent base. :param p: Decay factor. :param A: Amplitude. :param B: Offset. :return: Result of the exponential decay function.

isosceles_triangle

isosceles_triangle(base_length: float = 0.002, height: float = 0.003, center: tuple = (0, 0)) -> tuple

Returns the coordinates of three points defining an isosceles triangle.

Parameters:

Name Type Description Default
base_length float

Length of the base of the triangle.

0.002
height float

Height from base to apex.

0.003
center tuple

(x, y) coordinates of the midpoint of the base.

(0, 0)

Returns:

Name Type Description
tuple tuple

Three coordinate pairs (base_left, base_right, apex).