PHP code example of maherio / phpstats

1. Go to this page and download the library: Download maherio/phpstats library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maherio / phpstats example snippets


$data_set = [1,3,5,1,6,15,2,1];
$variance = calculate_variance($data_set);