public interface Sourcable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toSource(java.lang.String className,
Instances data)
Returns a string that describes the filter as source.
|
java.lang.String toSource(java.lang.String className, Instances data) throws java.lang.Exception
// converts one row
public static Object[] filter(Object[] i);
// converts a full dataset (first dimension is row index)
public static Object[][] filter(Object[][] i);
where the array i
contains elements that are either
Double, String, with missing values represented as null. The generated
code is public domain and comes with no warranty.className
- the name that should be given to the source class.data
- the dataset used for initializing the filterjava.lang.Exception
- if the source can't be computed