uk.ac.ed.inf.csb.taweka2010
Class FastVectorUtils

java.lang.Object
  extended by uk.ac.ed.inf.csb.taweka2010.FastVectorUtils

public class FastVectorUtils
extends java.lang.Object

Utilities for converting between normal vectors/enumerators to Weka FastVector

Version:
21 Apr 2010
Author:
Luna De Ferrari luna.deferrari-at-ed.ac.uk

Constructor Summary
FastVectorUtils()
           
 
Method Summary
static weka.core.FastVector fromEnumToFastVector(java.util.Enumeration enumeration)
           
static weka.core.FastVector fromSetToFastVector(java.util.Set<java.lang.String> set)
          convert from a set to a Weka FastVector
static weka.core.FastVector fromVectorToFastVector(java.util.Vector<java.lang.String> list)
          convert from list with potentially duplicated entries to a set loaded in a weka fastvector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastVectorUtils

public FastVectorUtils()
Method Detail

fromEnumToFastVector

public static weka.core.FastVector fromEnumToFastVector(java.util.Enumeration enumeration)

fromVectorToFastVector

public static weka.core.FastVector fromVectorToFastVector(java.util.Vector<java.lang.String> list)
convert from list with potentially duplicated entries to a set loaded in a weka fastvector

Parameters:
list - a list
Returns:
a vector containing the set elements

fromSetToFastVector

public static weka.core.FastVector fromSetToFastVector(java.util.Set<java.lang.String> set)
convert from a set to a Weka FastVector

Parameters:
set - a set
Returns:
a vector containing the set elements