Searched refs:SAMPLES_PER_SECOND (Results 1 – 3 of 3) sorted by relevance
28 SAMPLES_PER_SECOND = 50 variable36 SAMPLES_PER_SECOND, 'samples will be taken every second.\n'38 for i in range(0, NUMBER_OF_SECONDS * SAMPLES_PER_SECOND):40 time.sleep(1.0/SAMPLES_PER_SECOND)44 for i in range(0, NUMBER_OF_SECONDS * SAMPLES_PER_SECOND):49 print 'out of a total of', NUMBER_OF_SECONDS*SAMPLES_PER_SECOND, \59 for j in range(0, SAMPLES_PER_SECOND):60 sum += buffer[i*SAMPLES_PER_SECOND+j]61 average = sum / SAMPLES_PER_SECOND
37 const int SAMPLES_PER_SECOND = 50; in main() local45 << SAMPLES_PER_SECOND << " samples will be taken every second." in main()47 uint16_t* buffer = new uint16_t[NUMBER_OF_SECONDS * SAMPLES_PER_SECOND]; in main()48 for (int i=0; i < NUMBER_OF_SECONDS * SAMPLES_PER_SECOND; i++) { in main()50 usleep(MICROSECONDS_PER_SECOND / SAMPLES_PER_SECOND); in main()55 for (int i=0; i < NUMBER_OF_SECONDS * SAMPLES_PER_SECOND; i++) { in main()62 << "out of a total of " << NUMBER_OF_SECONDS*SAMPLES_PER_SECOND in main()73 for (int j=0; j < SAMPLES_PER_SECOND; j++) { in main()74 sum += buffer[i*SAMPLES_PER_SECOND + j]; in main()76 double average = (double) sum / (double) SAMPLES_PER_SECOND; in main()
30 var SAMPLES_PER_SECOND = 50; variable38 SAMPLES_PER_SECOND + " samples will be taken every second.");41 for (var i=0; i < NUMBER_OF_SECONDS * SAMPLES_PER_SECOND; i++) {43 delay(MILLISECONDS_PER_SECOND / SAMPLES_PER_SECOND );48 for (var i=0; i < NUMBER_OF_SECONDS * SAMPLES_PER_SECOND; i++) {55 console.log("out of a total of " + NUMBER_OF_SECONDS*SAMPLES_PER_SECOND +66 for (var j=0; j < SAMPLES_PER_SECOND; j++) {67 sum += buffer[i*SAMPLES_PER_SECOND+j];69 var average = sum / SAMPLES_PER_SECOND;