Class ExpNegErrorWeightedVote
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.core.voting.AbstractErrorWeightedVote
-
- moa.classifiers.rules.core.voting.ExpNegErrorWeightedVote
-
- All Implemented Interfaces:
Serializable
,ErrorWeightedVote
,MOAObject
public class ExpNegErrorWeightedVote extends AbstractErrorWeightedVote
ExpNegErrorWeightedVote class for weighted votes based on estimates of errors.- Version:
- $Revision: 1 $
- Author:
- João Duarte (jmduarte@inescporto.pt)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.classifiers.rules.core.voting.AbstractErrorWeightedVote
errors, votes, weights
-
-
Constructor Summary
Constructors Constructor Description ExpNegErrorWeightedVote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
computeWeightedVote()
Computes the weighted vote.void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.-
Methods inherited from class moa.classifiers.rules.core.voting.AbstractErrorWeightedVote
addVote, getNumberVotes, getWeightedError, getWeights
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.classifiers.rules.core.voting.ErrorWeightedVote
copy
-
-
-
-
Method Detail
-
computeWeightedVote
public double[] computeWeightedVote()
Description copied from interface:ErrorWeightedVote
Computes the weighted vote. Also updates the weights of the votes.- Specified by:
computeWeightedVote
in interfaceErrorWeightedVote
- Specified by:
computeWeightedVote
in classAbstractErrorWeightedVote
- Returns:
- the weighted vote
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-