quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_algo.a #include <FeatureSelect.h> FeatureSelect(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float floor); boolean eq(const FeatureSelect& arg); boolean setDimension(long dim);
description:none. this class is not to be used in isolation. this class provides the base functionality for the isip_feature_select utility.
static const String CLASS_NAME = L"FeatureSelect";
enum ALGORITHM { CLASS_BASED = 0, DEF_ALGORITHM = CLASS_BASED };
enum IMPLEMENTATION { NONE = 0, DEF_IMPLEMENTATION = NONE };
static const NameMap ALGO_MAP(L"CLASS_BASED");
static const NameMap IMPL_MAP(L"NONE");
static const String DEF_PARAM = L"";
static const String PARAM_ALGORITHM;
static const String PARAM_IMPLEMENTATION;
static const unichar DEF_DELIM = L':';
static const long DEF_DIMENSION = 118;
static const String DEF_RATIO_CLASS;
static const String DEF_RATIO_SIMILAR;
static const String DEF_OUTPUT_SUFFIX;
static const long ERR = 50900;
ALGORITHM algorithm_d;
IMPLEMENTATION implementation_d;
VectorLong ratio_class_d;
VectorLong ratio_similar_d;
Long dim_d;
FeatureFile::FILE_TYPE input_type_d;
FeatureFile::FILE_FORMAT input_format_d;
FeatureFile::FILE_TYPE output_type_d;
FeatureFile::FILE_FORMAT output_format_d;
String output_directory_d;
String output_extension_d;
Long output_preserve_d;
String output_suffix_d;
Filename audiodb_file_d;
AudioDatabase audiodb_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
static boolean setDebug(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~FeatureSelect();
FeatureSelect(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, float floor);
FeatureSelect(const FeatureSelect& arg);
boolean assign(const FeatureSelect& arg);
FeatureSelect& operator= (const FeatureSelect& arg);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const FeatureSelect& arg) const;
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setAlgorithm(ALGORITHM algorithm);
boolean setImplementation(IMPLEMENTATION implementation);
boolean setAudioDatabaseFile(const Filename& audiodb_file);
boolean setDimension(long dim = DEF_DIMENSION);
boolean setRatioClass(const String& ratio);
boolean setRatioSimilar(const String& ratio);
boolean setInputType(const FeatureFile::FILE_TYPE input_type = FeatureFile::DEF_FILE_TYPE));
boolean setInputFormat(const FeatureFile::FILE_FORMAT input_format = FeatureFile::DEF_FILE_FORMAT));
boolean setOutputType(const FeatureFile::FILE_TYPE output_type = FeatureFile::DEF_FILE_TYPE));
boolean setOutputFormat(const FeatureFile::FILE_FORMAT output_format = FeatureFile::DEF_FILE_FORMAT));
boolean setOutputDirectory(const String& new_dir);
boolean setOutputExtension(const String& extension);
boolean setOutputPreserve(const long preserve);
boolean setOutputSuffix(const String& suffix);
boolean setVerbosity(const Integral::DEBUG verbosity);
ALGORITHM getAlgorithm() const;
IMPLEMENTATION getImplementation() const;
Filename getAudioDatabaseFile() const;
long getDimension() const;
VectorLong getRatioClass() const;
VectorLong getRatioSimilar() const;
FeatureFile::FILE_TYPE getInputType() const;
FeatureFile::FILE_FORMAT getInputFormat() const;
FeatureFile::FILE_TYPE getOutputType() const;
FeatureFile::FILE_FORMAT getOutputFormat() const;
String getOutputDirectory() const;
String getOutputExtension() const;
long getOutputPreserve() const;
String getOutputSuffix() const;
boolean compute(String& symbol, Sdb& symbols_similar, Sdb& symbols_all);
boolean openAudioDatabase();
boolean closeAudioDatabase();
boolean retrieveFtrFile(const Strinf& identifier, Filename& ftr_file);
boolean readFeatures(const Filename& ftr_file, Vector& features);
boolean writeFeatures(const Filename& ftr_file, const Vector& features);
boolean computeClassBased(const String& symbol, Sdb& symbols_similar, Sdb& symbols_all);
boolean getAllFeatures(Sdb& symbols, long num_feat_vectors, Vector&th;VectorFloat> features);
boolean getFeatures(String& symbol, long num_feat_vectors, Vector&th;VectorFloat> features);