Utilities
Utilities module within the ketos library
This module provides a number of auxiliary methods.
|
Computes complex value from magnitude and phase angle. |
|
Detect peaks in time-series data. |
|
Ensure that destination directory exists. |
|
Returns sorted set of all divisors of n |
|
Query class member by name. |
|
Compute Morlet wavelet function |
|
Returns the number of dimensions of a list/tuple/array. |
|
Returns the n values nearest to index i from the array x. |
|
Compute the min, central, and max frequency value of the specified octave bands, using the following formulas, |
|
Produce a string of the specified octave bands in json format |
|
Returns a random number or numpy array of randum numbers uniformly distributed in the half-open interval [low, high) |
|
Round to a specified number of significant digits. |
|
Check if a given string represents a (signed) integer. |
|
Convert an array, tuple or list into a string. |
|
This function adds the ability to ceil to a decimal precision instead of to the nearest integer. |
|
This function adds the ability to floor to a decimal precision instead of to the nearest integer. |
|
Provides a convenient way to use ceil while specifying a decimal precision to floor instead This helps deal with imprecision of finite number of floating points arithmetics |
|
Provides a convenient way to use floor while specifying a decimal precision to ceil instead This helps deal with imprecision of finite number of floating points arithmetics |