程序包 weka.filters
接口 Sourcable
- 所有已知实现类:
AllFilter
,Center
,Normalize
,ReplaceMissingValues
,Standardize
public interface Sourcable
Interface for filters that can be converted to Java source.
- 版本:
- $Revision: 1.1 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
方法概要
-
方法详细资料
-
toSource
Returns a string that describes the filter as source. The filter will be contained in a class with the given name (there may be auxiliary classes), and will contain two methods with these signatures:
where the array// converts one row public static Object[] filter(Object[] i); // converts a full dataset (first dimension is row index) public static Object[][] filter(Object[][] i);
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 filter- 返回:
- the object source described by a string
- 抛出:
Exception
- if the source can't be computed
-