public abstract class AbstractErrorWeightedVote extends AbstractMOAObject implements ErrorWeightedVote
Modifier and Type | Field and Description |
---|---|
protected List<Double> |
errors |
protected List<double[]> |
votes |
protected double[] |
weights |
Constructor and Description |
---|
AbstractErrorWeightedVote() |
Modifier and Type | Method and 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.
|
abstract double[] |
computeWeightedVote()
Computes the weighted vote.
|
int |
getNumberVotes()
The number of votes added so far.
|
double |
getWeightedError()
Returns the weighted error.
|
double[] |
getWeights()
Return the weights error.
|
copy, copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
getDescription
protected List<double[]> votes
protected double[] weights
public void addVote(double[] vote, double error)
ErrorWeightedVote
addVote
in interface ErrorWeightedVote
vote
- a vote returned by a classifiererror
- the error associated to the votepublic abstract double[] computeWeightedVote()
ErrorWeightedVote
computeWeightedVote
in interface ErrorWeightedVote
public double getWeightedError()
ErrorWeightedVote
getWeightedError
in interface ErrorWeightedVote
public double[] getWeights()
ErrorWeightedVote
getWeights
in interface ErrorWeightedVote
public int getNumberVotes()
ErrorWeightedVote
getNumberVotes
in interface ErrorWeightedVote
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.