markferry ef22a6e18d Fix statistics sensor mean and median when only one sample is available. (#11180)
* Fix statistics sensor mean and median when only one sample is available.

With only one data point stddev and variance throw an exception.
This would clear the (valid) mean and median calculations.

Separate the try..catch blocks for one-or-more and two-or-more stats so
that this doesn't happen.

Test this with a new sampling_size_1 test.

* test_statistics trivial whitespace fix
2017-12-18 21:21:27 +01:00
..
2017-05-02 09:18:47 -07:00
2017-12-05 09:44:22 +01:00
2017-05-02 22:47:20 +02:00
2017-05-02 09:18:47 -07:00
2017-09-19 10:04:11 +02:00
2017-05-12 20:30:07 -07:00
2017-06-29 11:03:52 +02:00
2017-10-14 14:45:32 -04:00
2017-10-25 15:13:11 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-10-04 10:20:08 +02:00
2017-12-13 20:03:41 -08:00
2017-12-03 16:48:07 +01:00
2017-05-02 09:18:47 -07:00
2017-09-23 17:15:46 +02:00
2017-10-23 09:20:45 +02:00
2017-05-02 09:18:47 -07:00
2017-05-15 14:25:46 +02:00
2017-12-05 12:32:43 +01:00
2017-10-23 13:12:14 +02:00
2017-11-23 13:10:23 +01:00
2017-06-29 11:03:52 +02:00
2017-10-02 17:17:08 +02:00
2017-12-13 20:14:56 -08:00
2017-06-05 08:39:31 -07:00
2017-10-29 11:54:11 +01:00
2017-11-07 18:19:54 +01:00
2017-05-02 09:18:47 -07:00
2017-12-12 08:09:47 +01:00
2017-09-25 22:34:48 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-11-15 18:17:17 -05:00
2017-09-12 19:50:28 -07:00
2017-05-02 09:18:47 -07:00
2017-10-07 00:22:40 +02:00
2017-05-02 09:18:47 -07:00
2017-12-16 22:29:40 +01:00
2017-03-04 15:10:36 -08:00
2017-09-29 12:05:02 +02:00
2017-07-16 21:39:38 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-12-13 21:21:14 +01:00
2017-11-21 15:35:23 +01:00
2017-08-29 16:18:36 +02:00
2017-11-27 21:25:00 +01:00
2017-12-11 16:44:14 +01:00
2017-10-08 20:14:39 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-11-13 09:24:07 -08:00
2017-05-02 09:18:47 -07:00
2017-05-04 07:46:43 +02:00
2017-11-08 11:18:35 +01:00
2017-11-19 19:41:30 -08:00
2017-10-24 18:36:08 +02:00
2017-11-22 09:37:20 +00:00
2017-09-17 13:40:58 +02:00
2017-06-18 21:32:39 -07:00
2017-09-27 10:44:32 -07:00
2017-10-23 14:38:16 -04:00
2017-09-24 08:28:11 +02:00
2017-12-07 07:47:19 +01:00
2017-06-26 22:30:25 +02:00
2017-08-12 08:52:56 +02:00
2017-07-07 07:55:58 -07:00
2017-05-13 14:09:00 -04:00
2017-05-02 22:47:20 +02:00
2017-10-15 21:41:16 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 22:47:20 +02:00