Class AbstractErrorWeightedVote

    • Field Detail

      • votes

        protected List<double[]> votes
      • weights

        protected double[] weights
    • Constructor Detail

      • AbstractErrorWeightedVote

        public AbstractErrorWeightedVote()
    • Method Detail

      • addVote

        public void addVote​(double[] vote,
                            double error)
        Description copied from interface: ErrorWeightedVote
        Adds a vote and the corresponding error for the computation of the weighted vote and respective weighted error.
        Specified by:
        addVote in interface ErrorWeightedVote
        Parameters:
        vote - a vote returned by a classifier
        error - the error associated to the vote
      • computeWeightedVote

        public abstract double[] computeWeightedVote()
        Description copied from interface: ErrorWeightedVote
        Computes the weighted vote. Also updates the weights of the votes.
        Specified by:
        computeWeightedVote in interface ErrorWeightedVote
        Returns:
        the weighted vote