Interface ErrorWeightedVote
-
- All Known Implementing Classes:
AbstractErrorWeightedVote
,ExpNegErrorWeightedVote
,InverseErrorWeightedVote
,MinErrorWeightedVote
,OneMinusErrorWeightedVote
,UniformWeightedVote
public interface ErrorWeightedVote
ErrorWeightedVote interface for weighted votes based on estimates of errors.- Version:
- $Revision: 1 $
- Author:
- João Duarte (jmduarte@inescporto.pt)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addVote(double[] vote, double error)
Adds a vote and the corresponding error for the computation of the weighted vote and respective weighted error.double[]
computeWeightedVote()
Computes the weighted vote.MOAObject
copy()
Creates a copy of the objectint
getNumberVotes()
The number of votes added so far.double
getWeightedError()
Returns the weighted error.double[]
getWeights()
Return the weights error.
-
-
-
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 classifiererror
- 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
-
-