Wallogit.com
2017 © Pedro Peláez
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., (*1)
This bundle is covered by the MIT license. For details, see the license., (*2)
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):, (*3)
Add this bundle to your deps file:, (*4)
[CarbocationRegressionBundle]
git=git://github.com/carbocation/CarbocationStatisticsBundle.git
target=/bundles/Carbocation/StatisticsBundle
Then run bin/vendors install., (*5)
Register the Carbocation namespace in the app/autoload.php file:, (*6)
$loader->registerNamespaces(array(
// ...
'Carbocation' => __DIR__.'/../vendor/bundles',
));
Register the bundle in the app/AppKernel.php file:, (*7)
public function registerBundles()
{
$bundles = array(
// ...
new Carbocation\StatisticsBundle\CarbocationStatisticsBundle(),
);
}