features/signal_features.py
def signal_rms(signal_df, channels):
    '''
    Calculate root mean square of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure RMS
    :return: Pandas DataFrame housing calculated RMS for each signal channel
    '''
    rms_df = pd.DataFrame()

    for channel in channels:
        rms_df[channel + '_rms'] = [np.std(signal_df[channel] - signal_df[channel].mean())]

    return rms_df

    Calculate root mean square of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure RMS
    :return: Pandas DataFrame housing calculated RMS for each signal channel
    
Calculate root mean square of sensor signals.
Calculate root mean square of sensor signals .
def signal_rms(signal_df, channels):
    rms_df = pd.DataFrame()
    for channel in channels:
        rms_df[channel + '_rms'] = [np.std(signal_df[channel] - signal_df[channel].mean())]
    return rms_df
def signal_rms ( signal_df , channels ) : rms_df = pd . DataFrame ( ) for channel in channels : rms_df [ channel + '_rms' ] = [ np . std ( signal_df [ channel ] - signal_df [ channel ] . mean ( ) ) ] return rms_df
Calculate root mean square of sensor signals.
Calculate root mean square of sensor signals .
'''
    Calculate root mean square of sensor signals.

    :param signal_df: Pandas DataFrame housing desired sensor signals
    :param channels: channels of signal to measure RMS
    :return: Pandas DataFrame housing calculated RMS for each signal channel
    '''
Pandas DataFrame housing calculated RMS for each signal channel
Pandas DataFrame housing calculated RMS for each signal channel
signal_df
Pandas DataFrame housing desired sensor signals
Pandas DataFrame housing desired sensor signals
channels
channels of signal to measure RMS
channels of signal to measure RMS