π¦ Release 0.3.0 β Exponential Regression & Static Forecasting
β¨ What's New
β Exponential Regression Support
- Added new regression model: Exponential Regression
- Formula used:
y = a * e^(b * x) - Suitable for modeling exponential growth or decay patterns.
β‘οΈ Static Forecasting
- You can now use the forecasting service statically:
use MykolaVuy\Forecast\ForecastService; $data = [ 1 => 10, 2 => null, 3 => 30, 4 => 40, ]; $result = ForecastService::predict($data, 'exponential');
- No need to instantiate
ForecastServicewhen you just want a quick forecast.
π Improvements
- Cleaner internal structure and improved extensibility.
- Enhanced edge case handling for interpolation mode.
- Expanded unit test coverage across all regression types.
- Improved developer experience in usage examples.
π Examples
Multiple usage examples now available in /examples/ directory:
calculate.phpβ Run all regressions on predefined datasetsexponential_example.php,logarithmic_example.php, etc. β Per-regression demo filesdatasets.phpβ Organized data arrays for forecasting examples
π Documentation Updated
- README now reflects:
- β Exponential regression support
- β
Static usage via
ForecastService::predict() - β Expanded table of regression types
- β Richer code examples for onboarding
β Requirements
- PHP 8.1 or higher
- Composer
π§ͺ Run Tests
./vendor/bin/phpunitTest files are located in the
tests/directory.
π Useful Links
Thank you for using ForecastRegressions!
β If you find this project helpful, consider starring the repository or contributing.