analyses/utils.py
def angular_momentum_deviation(angular_momentum: np.array):
    """
    Compute the angular momentum deviation

    Parameters
    ----------
    angular_momentum : numpy.array
        Angular momentum
    """
    n = angular_momentum.shape[1]
    angular_momentum_norm = np.zeros(n)
    for i in range(n):
        angular_momentum_norm[i] = np.linalg.norm(angular_momentum[:, i])

    return rmse(angular_momentum_norm, np.repeat(np.linalg.norm(angular_momentum[:, 0:1]), axis=0, repeats=n))

    Compute the angular momentum deviation

    Parameters
    ----------
    angular_momentum : numpy.array
        Angular momentum
    
Compute the angular momentum deviation
Parameters

angular_momentum : numpy.array
Angular momentum
Compute the angular momentum deviation Parameters angular_momentum : numpy . array Angular momentum
def angular_momentum_deviation(angular_momentum: np.array):
    n = angular_momentum.shape[1]
    angular_momentum_norm = np.zeros(n)
    for i in range(n):
        angular_momentum_norm[i] = np.linalg.norm(angular_momentum[:, i])
    return rmse(angular_momentum_norm, np.repeat(np.linalg.norm(angular_momentum[:, 0:1]), axis=0, repeats=n))
def angular_momentum_deviation ( angular_momentum : np . array ) : n = angular_momentum . shape [ 1 ] angular_momentum_norm = np . zeros ( n ) for i in range ( n ) : angular_momentum_norm [ i ] = np . linalg . norm ( angular_momentum [ : , i ] ) return rmse ( angular_momentum_norm , np . repeat ( np . linalg . norm ( angular_momentum [ : , 0 : 1 ] ) , axis = 0 , repeats = n ) )
Compute the angular momentum deviation
Parameters
Compute the angular momentum deviation Parameters
"""
    Compute the angular momentum deviation

    Parameters
    ----------
    angular_momentum : numpy.array
        Angular momentum
    """
angular_momentum
np.array