Feature Selection ToolboxFST3 Library / Documentation

FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET > Class Template Reference

Returns the negative of another Criterion's result. More...

#include <criterion_negative.hpp>

Inheritance diagram for FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >:
Collaboration diagram for FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >:

List of all members.

Public Types

typedef boost::shared_ptr
< CRITERION > 
PCriterion
typedef boost::shared_ptr< SUBSET > PSubset

Public Member Functions

 Criterion_Negative (const PCriterion crit)
virtual bool evaluate (RETURNTYPE &result, const PSubset sub)
Criterion_Negativeclone () const
Criterion_Negativesharing_clone () const
Criterion_Negativestateless_clone () const
virtual std::ostream & print (std::ostream &os) const

Private Member Functions

 Criterion_Negative (const Criterion_Negative &cn)

Private Attributes

PCriterion _crit

Detailed Description

template<class CRITERION, class RETURNTYPE, class SUBSET>
class FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >

Returns the negative of another Criterion's result.

This trivial criterion can be used to turn maximization to minimization. Useful, e.g., in subset size minimizing scenarios (in conjunction with Criterion_Negative) or in feature acquisition weight minimization scenarios (in conjunction with Criterion_Sum_Of_Weights).

Examples:

demo51.cpp, demo52t.cpp, and demo61.cpp.


Member Function Documentation

template<class CRITERION , class RETURNTYPE , class SUBSET >
Criterion_Negative< CRITERION, RETURNTYPE, SUBSET > * FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >::clone (  )  const [inline, virtual]

create 1:1 independent clone of the current object

Implements FST::Clonable.

template<class CRITERION, class RETURNTYPE, class SUBSET>
Criterion_Negative* FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >::sharing_clone (  )  const [inline, virtual]

create equivalent clone of the current object, parmitting read-only access to structures in the source object (allows referencing instead of copying of large memory structures). may be faster and save space but requires more caution with respect to concurrency Use example: Data_Accessor memory data representation cloning

Implements FST::Clonable.

template<class CRITERION, class RETURNTYPE, class SUBSET>
Criterion_Negative* FST::Criterion_Negative< CRITERION, RETURNTYPE, SUBSET >::stateless_clone (  )  const [inline, virtual]

create clone of the current object, ignoring internal temporary structures to save speed. Does not replicate exact object state. The clone must be used carefully in a way that ensures internal structure re-initialization Use example: Data_Splitter cloning or Classifier_SVM cloning due to inability to clone external structures defined in LibSVM

Implements FST::Clonable.


The documentation for this class was generated from the following file:

Generated on Thu Mar 31 11:38:25 2011 for FST3Library by  doxygen 1.6.1