Skip to content

Commit e2c4b11

Browse files
authored
Update statistics.ino
1 parent 2c1c888 commit e2c4b11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/statistics/statistics.ino

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Example program for use with QuickStats.h
22
// Author: D. Dubins
3-
// Date: 08-Dec-21
3+
// Date: 01-Apr-25
44
/* Expected Results:
55
Descriptive Statistics
66
Average: 3.62
@@ -10,6 +10,7 @@ Maximum: 7.00
1010
Standard Deviation: 2.00
1111
Standard Error: 0.67
1212
Coefficient of Variation (%): 55.23
13+
SNR: 1.81
1314
Median: 3.30
1415
Mode: 2.20
1516
GMDN: 3.33
@@ -40,6 +41,8 @@ void setup()
4041
Serial.println(stats.stderror(readings,numreadings));
4142
Serial.print("Coefficient of Variation (%): ");
4243
Serial.println(stats.CV(readings,numreadings));
44+
Serial.print("SNR: ");
45+
Serial.println(stats.SNR(readings,numreadings));
4346
Serial.print("Median: ");
4447
Serial.println(stats.median(readings,numreadings));
4548
Serial.print("Mode: ");

0 commit comments

Comments
 (0)