Ignore:
Timestamp:
07/18/16 12:26:03 (8 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/wekaclassifier/RandomClass.java

    r86 r135  
    2222 
    2323/** 
     24 * <p> 
    2425 * Assigns a random class label to the instance it is evaluated on. 
    25  *  
     26 * </p> 
    2627 * The range of class labels are hardcoded in fixedClassValues. This can later be extended to take 
    2728 * values from the XML configuration. 
     29 * </p> 
     30 *  
     31 * @author Alexander Trautsch 
    2832 */ 
    2933public class RandomClass extends AbstractClassifier { 
    3034 
     35    /** 
     36     * default serialization id 
     37     */ 
    3138    private static final long serialVersionUID = 1L; 
    3239 
     40    /** 
     41     * class values 
     42     */ 
    3343    private double[] fixedClassValues = 
    3444        { 0.0d, 1.0d }; 
    3545 
     46    /* 
     47     * (non-Javadoc) 
     48     *  
     49     * @see weka.classifiers.Classifier#buildClassifier(weka.core.Instances) 
     50     */ 
    3651    @Override 
    3752    public void buildClassifier(Instances arg0) throws Exception { 
     
    3954    } 
    4055 
     56    /* 
     57     * (non-Javadoc) 
     58     *  
     59     * @see weka.classifiers.AbstractClassifier#classifyInstance(weka.core.Instance) 
     60     */ 
    4161    @Override 
    4262    public double classifyInstance(Instance instance) { 
Note: See TracChangeset for help on using the changeset viewer.