public function decideAnomaly(array $votes) : int
    {
        $scores = array_fill(0, 2, 0.);

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

        return argmax($scores);
    }
public function decideAnomaly(array $votes) : int
    {
        $scores = array_fill(0, 2, 0.);

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

        return argmax($scores);
    }
public function decideAnomaly ( array $ votes ) : int { $ scores = array_fill ( 0 , 2 , 0. ) ; foreach ( $ votes as $ i => $ vote ) { $ scores [ $ vote ] += $ this -> influences [ $ i ] ; } return argmax ( $ scores ) ; }
Decide on an anomaly outcome.

@param int[] $votes
@return int
Decide on an anomaly outcome .