carbocation / statistics-bundle
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-03-29 17:20:04 UTC
README
This is a pure PHP library that implements multivariate linear regression using linear algebra. The Moore-Penrose pseudoinverse is used in the computation of the coefficient matrix. The original regression and matrix libraries were written by Shankar Manamalkav, and the original files can be found on his blog. It has been adapted as a Symfony2 bundle by James Pirruccello.
This bundle is covered by the MIT license. For details, see the license.
Symfony2 Installation
This bundle can be used as a standalone package for PHP 5.3+. It can also be used as a Symfony2 bundle. To do so, follow these instructions (for the 2.0.x branch):
-
Add this bundle to your
deps
file:[CarbocationRegressionBundle] git=git://github.com/carbocation/CarbocationStatisticsBundle.git target=/bundles/Carbocation/StatisticsBundle
Then run
bin/vendors install
. -
Register the
Carbocation
namespace in theapp/autoload.php
file:$loader->registerNamespaces(array( // ... 'Carbocation' => __DIR__.'/../vendor/bundles', ));
-
Register the bundle in the
app/AppKernel.php
file:public function registerBundles() { $bundles = array( // ... new Carbocation\StatisticsBundle\CarbocationStatisticsBundle(), ); }