dhbw.dasp.math module

dhbw.dasp.math.abs(x, db=True)[source]

Returns the absolute value of the specified complex number sequence.

Parameters:
xarray

Input array.

dbbool, optional

Option whether to express the output values in decibels.

dhbw.dasp.math.arg(x, wrap=None)[source]

Returns the angle value of the specified complex number sequence.

Parameters:
xarray

Input array.

wrapbool, optional

Option whether to express the output values in 2*pi range.

dhbw.dasp.math.db(x)[source]

Converts the specified value into decibel scale.

Parameters:
xarray

Input array to be converted.

dhbw.dasp.math.even(x)[source]

Returns even number next to the specified number.

Parameters:
xint, float

Input number.

dhbw.dasp.math.odd(x)[source]

Returns odd number next to the specified number.

Parameters:
xint, float

Input number.

dhbw.dasp.math.pot(x)[source]

Returns power of two value next to the specified number.

Parameters:
xint

Input number.

dhbw.dasp.math.rms(x)[source]

Returns Root Mean Square value of the specified number sequence.

Parameters:
xarray

Input array.

dhbw.dasp.math.unwrap(x)[source]

Unwraps the specified phase value.

Parameters:
xarray

Input phase values to be unwrapped.

dhbw.dasp.math.wrap(x)[source]

Wraps the specified phase value into 2*pi range.

Parameters:
xarray

Input phase values to be wrapped.