⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r_elman.h

📁 ears-0.32, linux下有用的语音信号处理工具包
💻 H
字号:
#pragma interface#if !defined(R_elman_h) && defined(R_ELMAN)#define R_elman_h#include "recognizer.h"#include "pattern.h"class ELMAN1 : public RecognizerImplementation      // Elman recurrent net{protected:  const float maxerr, thresh;  const maxepoch;  int npat,nin,nout,nhid,trace,coeff,empty,*patlen;  float *ain,*ahid,*acon,*aout,**whi,**whc,**who,**pat,**out,*null, theta;  void build();  void init_weights();  inline float errf (float,float);public:  explicit ELMAN1 (bool d)   : RecognizerImplementation(d), maxerr(1e-5), thresh(0.1), maxepoch(2000)     { empty=1; pat=out=0; }  virtual ~ELMAN1();  virtual void dimension (int words, int patterns);  virtual void get (const String& fn, int wc, int pc);  virtual void train();  virtual int eval (const pattern&);  virtual void write (ostream&);  virtual void read  (istream&);  virtual int training_needed() { return 1; }  virtual const char* pat_type()    { return "V"; }};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -