adams.core
Class MOAHelper

java.lang.Object
  extended by adams.core.MOAHelper

public class MOAHelper
extends Object

Helper class for MOA related stuff.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Constructor Summary
MOAHelper()
           
 
Method Summary
static double[] fixVotes(double[] votes, Instance inst)
          Fixes the votes array if the length differs from the number of class labels defined in the header information of the dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOAHelper

public MOAHelper()
Method Detail

fixVotes

public static double[] fixVotes(double[] votes,
                                Instance inst)
Fixes the votes array if the length differs from the number of class labels defined in the header information of the dataset.

Parameters:
votes - the votes to fix
inst - the instance to get the dataset information from
Returns:
the (potentially) fixed votes array


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.