pydune.math#

Mathematical functions used in all submodules.

Functions

arcsind

Trigonometric inverse sine using np.arcsine, element-wise with an output in degree.

arctan2d

Element-wise arc tangent of x1/x2 choosing the quadrant correctly using np.arctan2 with an output in degree.

arctand

Trigonometric inverse tangent using np.arctan, element-wise with an output in degree.

cartesian_to_polar

make the transformation from cartesian to polar coordinates.

cosd

Cosine element-wise np.cos with an input in degree.

histogram

Histogram applied along specified axis / axes.

make_angular_PDF

Calculate the angular PDF (normalized) from input arrays.

make_angular_average

Calculate the average by angle bins from input arrays.

sind

Trigonometric sine using np.sin, element-wise with an input in degree.

tand

Compute tangent element-wise using np.tan with an input in degree.

vector_average

Calculate the average vector from series of angles and norms.