quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_numeric.a #include <Mel.h> boolean compute(VectorFloat& mel, const VectorFloat& freq);
description:VectorFloat freq(1); VectorFloat mel; freq(0) = 1000; Mel::compute(mel, freq);
Mel = 2595 log10 (1 + freq / 700.0)For more details about this transformation, see:
static const String CLASS_NAME = L"Mel";
static const String DEF_PARAM = L"";
static const long ERR = (long)35400;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean setDebug(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~Mel();
Mel();
Mel(const Mel& arg);
boolean assign(const Mel& arg)
Mel& operator= (const Mel& 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 Mel& 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);
static boolean compute(float& mel, float freq);
static boolean compute(VectorFloat& mel, const VectorFloat& freq);
#include <Mel.h> #include <VectorFloat.h> int main() { // declare a Mel object // Mel ml; // declare the input and output vectors // VectorFloat freq(L"100, 200, 300, 400, 500, 600"); VectorFloat mel; // transform the input using the Mel scale // Mel::compute(mel, freq); // exit gracefully // Integral::exit(); }