src/PredictionBuilder.php
private function sumSquared(array $vector) {
        return array_reduce(
            $vector, 
            function($v, $w) { return $v += $this->square($w); }
        );
    }
private function sumSquared(array $vector) {
        return array_reduce(
            $vector, 
            function($v, $w) { return $v += $this->square($w); }
        );
    }
private function sumSquared ( array $ vector ) { return array_reduce ( $ vector , function ( $ v , $ w ) { return $ v += $ this -> square ( $ w ) ; } ) ; }
Sum of the vector squared values

@param array $vector

@return number
Sum of the vector squared values