diff --git a/LICENSE b/LICENSE index a7d43ff..f295195 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Mehmet Günce Akkoyun +Copyright (c) 2022 Mehmet Günce Akkoyun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8f485e2..ad2e588 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/akkoyun/Statistical) ![arduino-library-badge](https://www.ardu-badge.com/badge/Statistical.svg?) ![Visits Badge](https://badges.pufler.dev/visits/akkoyun/Statistical) ![GitHub stars](https://img.shields.io/github/stars/akkoyun/Statistical?style=flat&logo=github) ![Updated Badge](https://badges.pufler.dev/updated/akkoyun/Statistical) ![PlatformIO Registry](https://badges.registry.platformio.org/packages/akkoyun/library/Statistical.svg) [![Check Arduino](https://github.com/akkoyun/Statistical/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/check-arduino.yml) [![Compile Examples](https://github.com/akkoyun/Statistical/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/compile-examples.yml) [![Spell Check](https://github.com/akkoyun/Statistical/actions/workflows/spell-check.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/spell-check.yml) - Build - 02.00.03 + Build - 02.00.04 --- diff --git a/docs/index.md b/docs/index.md index 8f485e2..ad2e588 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,7 +3,7 @@ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/akkoyun/Statistical) ![arduino-library-badge](https://www.ardu-badge.com/badge/Statistical.svg?) ![Visits Badge](https://badges.pufler.dev/visits/akkoyun/Statistical) ![GitHub stars](https://img.shields.io/github/stars/akkoyun/Statistical?style=flat&logo=github) ![Updated Badge](https://badges.pufler.dev/updated/akkoyun/Statistical) ![PlatformIO Registry](https://badges.registry.platformio.org/packages/akkoyun/library/Statistical.svg) [![Check Arduino](https://github.com/akkoyun/Statistical/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/check-arduino.yml) [![Compile Examples](https://github.com/akkoyun/Statistical/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/compile-examples.yml) [![Spell Check](https://github.com/akkoyun/Statistical/actions/workflows/spell-check.yml/badge.svg)](https://github.com/akkoyun/Statistical/actions/workflows/spell-check.yml) - Build - 02.00.03 + Build - 02.00.04 --- diff --git a/library.json b/library.json index 18befeb..90b6fd9 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Statistical", - "version": "2.0.3", + "version": "2.0.4", "keywords": "Statistical, Max, Min, Average, Regression, Data, Sensor, Slope, Offset", "description": "Function calculates statistical parameters of data stream and array", "authors": diff --git a/library.properties b/library.properties index a0cc4a1..1404afa 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Statistical -version=2.0.3 +version=2.0.4 author=Gunce Akkoyun maintainer=Gunce Akkoyun sentence=Statistic, Sum, Max, Min, Sq_Sum, Arithmetic Average, Geometric Average, RMS Average, Ext RMS Average, Bubble Sort, Median, Standard Deviation, Standard Deviation Error, Coefficient Factor, Average, Stream, Regression, Slope, Data, Analyse diff --git a/src/Statistical.h b/src/Statistical.h index a776efc..ae0054c 100644 --- a/src/Statistical.h +++ b/src/Statistical.h @@ -250,7 +250,7 @@ template class Array_Stats { _Sum -= sq(Max()); // Calculate RSM Average - double _Ext_RMS_Avg = (sqrt(_Sum / this->Data_Count)); + double _Ext_RMS_Avg = (sqrt(_Sum / (this->Data_Count - 2))); // Handle Calculation if (isnan(_Ext_RMS_Avg)) _Ext_RMS_Avg = 0;