public function weight()
    {
        $scores = [];
        foreach ($this->results as $result) {
            $scores[] = $this->getResultScore($result);
        }

        return $scores;
    }
public function weight()
    {
        $scores = [];
        foreach ($this->results as $result) {
            $scores[] = $this->getResultScore($result);
        }

        return $scores;
    }
public function weight ( ) { $ scores = [ ] ; foreach ( $ this -> results as $ result ) { $ scores [ ] = $ this -> getResultScore ( $ result ) ; } return $ scores ; }
This is the public method that gets a score for a the set of results.

@return array An array of scores for each of the corresponding results
This is the public method that gets a score for a the set of results .