Interface ErrorWeightedVote

    • Method Detail

      • addVote

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

        double[] computeWeightedVote()
        Computes the weighted vote. Also updates the weights of the votes.
        Returns:
        the weighted vote
      • getWeightedError

        double getWeightedError()
        Returns the weighted error.
        Returns:
        the weighted error
      • getWeights

        double[] getWeights()
        Return the weights error.
        Returns:
        the weights
      • getNumberVotes

        int getNumberVotes()
        The number of votes added so far.
        Returns:
        the number of votes
      • copy

        MOAObject copy()
        Creates a copy of the object
        Returns:
        copy of the object