Download the PHP package pointybeard/helpers-statistics-slidingaverage without Composer
On this page you can find all versions of the php package pointybeard/helpers-statistics-slidingaverage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pointybeard/helpers-statistics-slidingaverage
More information about pointybeard/helpers-statistics-slidingaverage
Files in pointybeard/helpers-statistics-slidingaverage
Package helpers-statistics-slidingaverage
Short Description Ring buffer for calculating average of a changing set; helps to reduce jitter.
License MIT
Homepage https://github.com/pointybeard/helpers-statistics-slidingaverage
Informations about the package helpers-statistics-slidingaverage
PHP Helpers: Sliding Average
- Version: v1.0.2
- Date: May 05 2019
- Release notes
- GitHub repository
Ring buffer for calculating average of a changing set; helps to reduce jitter.
Installation
This library is installed via Composer. To install, use composer require pointybeard/helpers-statistics-slidingaverage
or add "pointybeard/helpers-statistics-slidingaverage": "~1.0"
to your composer.json
file.
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Requirements
There are no particuar requirements for this library other than PHP 5.6 or greater.
To include all the PHP Helpers packages on your project, use composer require pointybeard/helpers
or add "pointybeard/helpers": "~1.0"
to your composer file.
Usage
Simple example of how to use the SlidingAverage class:
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
Contributing
We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved.
Credits
Credit to Alexey Volynskov's tutorial, and C# implementation, Quick Tip: Use the "Ring Buffer" Data Structure to Smooth Jittery Values. The inspiration for this class comes from that tutorial.
License
"PHP Helpers: Sliding Average" is released under the MIT License.