exa.core.model_selection_fitter.utils.auto_rotate

Contents

exa.core.model_selection_fitter.utils.auto_rotate#

auto_rotate(vec)#

Rotates a list of complex numbers to the real quadrature that contains the most amount of information.

Parameters:

vec (ndarray) – A NumPy array containing the complex numbers. If real, original value is returned.

Return type:

ndarray

Returns: A NumPy array with real entries that contains the rotated complex numbers.