Download the PHP package patelworld/statistics without Composer
On this page you can find all versions of the php package patelworld/statistics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patelworld/statistics
More information about patelworld/statistics
Files in patelworld/statistics
Package statistics
Short Description A comprehensive PHP statistics library implementing SOLID principles with strict typing
License MIT
Informations about the package statistics
PatelWorld Statistics
A comprehensive PHP statistics library implementing SOLID principles with strict typing.
Features
- Written in PHP 7.4+ with strict typing
- Follows SOLID design principles
- Single point of execution through the
Statisticsfacade class - Comprehensive error handling with custom exceptions
- Easily extensible architecture
Installation
Usage
You can use this library in two ways:
- Through the Statistics facade (recommended for most uses)
- By creating instances of individual operation classes directly (for more control)
Using the Statistics Facade
The Statistics class provides a single entry point for all statistical operations:
Using Individual Operation Classes
For more control or when extending functionality:
Complete Reference
Descriptive Statistics
Basic Measures
Quantiles and Distribution Shape
Correlation and Regression
Probability Distributions
Hypothesis Testing
Data Transformation
Direct Class Usage Examples
For advanced usage, you can create instances of the operation classes directly:
Descriptive Statistics
Hypothesis Testing
Probability Distributions
Error Handling
This library uses a hierarchy of custom exceptions for precise error handling:
Exception Types
StatisticsException: Base class for all library exceptionsEmptyDataException: Thrown when an empty dataset is providedInvalidDataException: Thrown when data contains non-numeric values or parameters are invalidInsufficientDataException: Thrown when there aren't enough data points for a calculation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.