public function decideClass(array $votes)
    {
        $scores = array_fill_keys($this->classes, 0.);

        foreach ($votes as $i => $vote) {
            $scores[$vote] += $this->influences[$i];
        }

        return argmax($scores);
    }
public function decideClass(array $votes)
    {
        $scores = array_fill_keys($this->classes, 0.);

        foreach ($votes as $i => $vote) {
            $scores[$vote] += $this->influences[$i];
        }

        return argmax($scores);
    }
public function decideClass ( array $ votes ) { $ scores = array_fill_keys ( $ this -> classes , 0. ) ; foreach ( $ votes as $ i => $ vote ) { $ scores [ $ vote ] += $ this -> influences [ $ i ] ; } return argmax ( $ scores ) ; }
Decide on a class outcome.

@param (int|string)[] $votes
@return int|string
Decide on a class outcome .