Statistical
Descriptive statistics such as mean, geometric mean, maximum, minimum, sample standard deviation and standard error, median, mode, coefficient of variation, and linear regression. Written for various data type arrays
Install / Use
/learn @akkoyun/StatisticalREADME
Statistical Library ^V2.5^
Build - 02.05.00
Abstract
Descriptive statistics for Arduino float arrays
We developed this library to help quickly accomplish median and mode filtering when collecting sensor data. Functions in this library operate on an array of float variables, of dimension "m", and return the corresponding statistic. This library was originally created for a data smoothing strategy for float variables. Using a median or mode filtering strategy (opposed to mean filtering) is better at removing spikes from aberrant readings.
A bubble sort algorithm is also contained in this library which was necessary to calculate median and mode.
<details> <summary>Array Statistics</summary> </br> Library calculate listed statistical parameters for fixed size arrays.* Average
* Sum
* Max
* Min
* Sq_Sum
* Arithmetic_Average
* Geometric_Average
* RMS_Average
* Ext_RMS_Average
* Sigma_Average
* Quartile
* IQR
* Standard_Deviation
* Standard_Deviation_Error
* Variance
* Bubble_Sort
* Array
* Set_FILO_Size
* FILO_Add_Data
</details>
<details>
<summary>Stream Statistics</summary>
</br>
Library calculate listed statistical parameters for data streams.
* Data Count
* Arithmetic Average
* Minimum
* Maximum
</details>
<details>
<summary>Array Linear Regression</summary>
</br>
Library calculate listed statistical parameters for fixed size arrays.
* Slope
* Offset
* R2
</details>
<details>
<summary>Stream Linear Regression</summary>
</br>
Library calculate listed statistical parameters for data stream. User set the regression precision for calculating last n data regression.
* Slope
* Offset
* R2
</details>
<details>
<summary>Machine Learning Algorithm</summary>
</br>
This library will calculate slope of data according last n value. With these slope data system can learn sensor anomaly and make decision.
<img src="/Documents/Pressure_Regression.gif" width="800">
</details>
