diva.sketch.classification
Class CrossValidation.CVData

java.lang.Object
  extended by diva.sketch.classification.CrossValidation.CVData
Enclosing class:
CrossValidation

public static class CrossValidation.CVData
extends Object

Containing the training set on which the cross-vali


Constructor Summary
CrossValidation.CVData()
           
 
Method Summary
 void addClass(String type, ArrayList examples)
          Add examples of the specified type.
 void addExample(String type, FeatureSet example)
          Add an example of the specified type
 FeatureSet[] getExamples(String type)
           
 int getTypeCount()
           
 String toString()
           
 Iterator types()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrossValidation.CVData

public CrossValidation.CVData()
Method Detail

addClass

public void addClass(String type,
                     ArrayList examples)
Add examples of the specified type. The ArrayList contains FeatureSet objects.


addExample

public void addExample(String type,
                       FeatureSet example)
Add an example of the specified type


getTypeCount

public int getTypeCount()

types

public Iterator types()

getExamples

public FeatureSet[] getExamples(String type)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.