Searched refs:rms (Results 1 – 3 of 3) sorted by relevance
58 float rms = 0; in getCurrency_A() local64 rms = rms + volt; in getCurrency_A()68 rms = rms / (float)NUMBER_OF_SAMPLES; in getCurrency_A()69 rms = sqrt(rms); in getCurrency_A()70 return rms / R_LOAD; in getCurrency_A()
900 float rms = nb_valid_meas == 0 ? 0.0f : sqrtf(sum_rms_squared / nb_valid_meas); in visualizer_command() local903 if (rms < 0.000016f) { in visualizer_command()906 p_int_reply_data[MEASUREMENT_IDX_RMS] = (int32_t) (2000 * log10(rms / 32767.0f)); in visualizer_command()915 rms, p_int_reply_data[MEASUREMENT_IDX_RMS]); in visualizer_command()
879 float rms = nb_valid_meas == 0 ? 0.0f : sqrtf(sum_rms_squared / nb_valid_meas); in visualizer_command() local882 if (rms < 0.000016f) { in visualizer_command()885 p_int_reply_data[MEASUREMENT_IDX_RMS] = (int32_t) (2000 * log10(rms / 32767.0f)); in visualizer_command()894 rms, p_int_reply_data[MEASUREMENT_IDX_RMS]); in visualizer_command()