📄 bfgsfix.h
字号:
//////////////////////////////////////////////////////////////////////////// Copyright (c) 2000, Yusuke Miyao/// You may distribute under the terms of the Artistic License.////// <id>$Id: BFGSFix.h,v 1.2 2003/05/11 18:12:09 yusuke Exp $</id>/// <collection>Maximum Entropy Estimator</collection>/// <name>BFGSFix.h</name>/// <overview>Maximum entropy model estimator by BFGS method</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_BFGSFix_h_#define Amis_BFGSFix_h_#include <amis/configure.h>#include <amis/BFGS.h>#include <amis/ModelFix.h>#include <amis/EventFixSpace.h>//#include <amis/EventFixSpace.h>//#include <amis/EventSpaceKernel.h>//#include <amis/ModelExpectFix.h>//#include <amis/ModelExpectFixKernel.h>AMIS_NAMESPACE_BEGINtemplate < class Feature >class BFGSFix : public BFGSBase< ModelFixBase, EventFixSpaceBase< Feature > > {public: explicit BFGSFix( int m = DEFAULT_MEMORY_SIZE ) : BFGSBase< ModelFixBase, EventFixSpaceBase< Feature > >( m ) {} BFGSFix( ModelFixBase& init_model, EventFixSpaceBase< Feature >& init_event, int m = DEFAULT_MEMORY_SIZE ) : BFGSBase< ModelFixBase, EventFixSpaceBase< Feature > >( init_model, init_event, m ) {} /// Constructor virtual ~BFGSFix() {} /// Destructor const std::string estimatorName( void ) const { return "BFGSFix<" + Feature::featureTypeName() + ">"; } /// Get the name of this class};/*template < class Feature >class BFGSFixKernel : public BFGSBase< EventFixSpaceKernel< Feature >, ModelExpectFixKernel< Feature >, EmpiricalExpectFixKernel< Feature, EventFixSpaceKernel< Feature > > > { public: typedef EventFixSpaceKernel< Feature > EventSpace; typedef BFGSBase< EventSpace, ModelExpectFixKernel< Feature >, EmpiricalExpectFixKernel< Feature, EventSpace > > Base; BFGSFixKernel( ModelFix* init_model, EventSpace* init_event, int m, int num_threads ) : Base( init_model, init_event, m, num_threads ) {} /// Constructor virtual ~BFGSFixKernel() {} /// Destructor const std::string estimatorName( void ) const { return "BFGSFixKernel<" + Feature::featureTypeName() + ">"; } /// Get the name of this class};*/AMIS_NAMESPACE_END#endif // Amis_BFGSFix_h_// end of BFGSFix.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -