def tot_power(Power,N,T):
    """
    Calculate the area of the power spectrum, i.e, the total power in V^2 of a signal
    --------------------------------------------------------------------------------
    input: 
        - Power: COMPLEX, N-dimensional. Power spectrum of the signal
        - N: INTEGER. Number of sampling points
        - T: REAL or INTEGER: number of sampling points
    output: 
        - REAL. Total power 
    """
    tmp = 0 
    for i in range(1,int(N/2)):
        tmp+=Power[i]
    return tmp/T