python_codes.general#

A few general functions used in many scripts.

Functions

Make_angular_PDF

Calculate the angular PDF (normalized) from input arrays.

Vector_average

Calculate the average vector from series of angles and norms.

cosd

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

find_mode_distribution

Find de mode of a distribution from a serie of realisations of the random variable.

sind

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

smallestSignedAngleBetween

Calculate the smallest angle between two angle arrays.

tand

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