Searched refs:NUMBER_OF_SAMPLES (Results 1 – 2 of 2) sorted by relevance
60 for (int i = 0; i < NUMBER_OF_SAMPLES; i++) { in getCurrency_A()68 rms = rms / (float)NUMBER_OF_SAMPLES; in getCurrency_A()77 for (int i = 0; i < NUMBER_OF_SAMPLES; i++) { in getCurrency_B()86 return ( ratio * sqrt(sumCurrency / NUMBER_OF_SAMPLES) ); in getCurrency_B()
33 #define NUMBER_OF_SAMPLES 500 macro77 static const uint8_t DELAY_MS = 20000 / NUMBER_OF_SAMPLES; /* 1/50Hz is 20ms period */