sg.edu.nus.comp.nlp.ims.lexelt
Class CFeatureSelectorCombination

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.lexelt.CFeatureSelectorCombination
All Implemented Interfaces:
IFeatureSelector

public class CFeatureSelectorCombination
extends java.lang.Object
implements IFeatureSelector

feature selector combination.

Author:
zhongzhi

Nested Class Summary
 
Nested classes/interfaces inherited from interface sg.edu.nus.comp.nlp.ims.lexelt.IFeatureSelector
IFeatureSelector.Type
 
Field Summary
protected  java.util.ArrayList<IFeatureSelector> m_Selectors
           
protected  int m_Size
           
protected  boolean m_Status
           
protected  java.util.ArrayList<java.util.List<java.lang.String>> m_Values
           
 
Constructor Summary
CFeatureSelectorCombination(java.util.ArrayList<IFeatureSelector> p_Selectors)
          constructor
 
Method Summary
protected  boolean checkSelectors()
          check whether feature selectors have been set
protected  void clear()
          clear
 void filter(IStatistic p_Stat)
          filter statistic
 IFeatureSelector.Type isFiltered(int featureIndex)
          check whether p_FeatureIndex is filtered
 IFeatureSelector.Type isFiltered(int featureIndex, java.lang.String value)
          check whether p_FeatureIndex's p_Value is filtered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Size

protected int m_Size

m_Values

protected java.util.ArrayList<java.util.List<java.lang.String>> m_Values

m_Selectors

protected java.util.ArrayList<IFeatureSelector> m_Selectors

m_Status

protected boolean m_Status
Constructor Detail

CFeatureSelectorCombination

public CFeatureSelectorCombination(java.util.ArrayList<IFeatureSelector> p_Selectors)
constructor

Parameters:
p_Selectors - list of feature selectors
Method Detail

clear

protected void clear()
clear


checkSelectors

protected boolean checkSelectors()
check whether feature selectors have been set

Returns:
true or false

filter

public void filter(IStatistic p_Stat)
Description copied from interface: IFeatureSelector
filter statistic

Specified by:
filter in interface IFeatureSelector
Parameters:
p_Stat - input statistic

isFiltered

public IFeatureSelector.Type isFiltered(int featureIndex)
Description copied from interface: IFeatureSelector
check whether p_FeatureIndex is filtered

Specified by:
isFiltered in interface IFeatureSelector
Parameters:
featureIndex - feature index
Returns:
filter type

isFiltered

public IFeatureSelector.Type isFiltered(int featureIndex,
                                        java.lang.String value)
Description copied from interface: IFeatureSelector
check whether p_FeatureIndex's p_Value is filtered

Specified by:
isFiltered in interface IFeatureSelector
Parameters:
featureIndex - feature index
value - feature value
Returns:
filter type