src.utils.logc module#
- unzero(x, shift=1e-12, shiftmode='relmin')[source]#
function that returns an array with shift for all zero values of input array x.
- Parameters:
x (array)
shift (float, optional)
shiftmode (string, optional) – options are ‘relmin’, ‘relmax’, ‘abs’ standing for shifting the array by ‘relmin’: the minimum of x time shift ‘relmax’: the maximum of x time shift ‘abs’: the shift absolutely