bfgsmaplauncheritem.h

来自「Amis - A maximum entropy estimator 一个最大」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef Amis_BFGSMAPLauncherItem_h_#define Amis_BFGSMAPLauncherItem_h_#include <amis/configure.h>#include <amis/BFGSLauncherItem.h>#include <amis/GaussianPriorLauncher.h>#include <amis/Property.h>AMIS_NAMESPACE_BEGINtemplate < class BFGSMAP >class BFGSMAPLauncherItem : public BFGSLauncherItem< BFGSMAP > {public:  BFGSMAPLauncherItem( const std::string& name,		       const std::string& event,		       const std::string& feature,		       const std::string& desc )    : BFGSLauncherItem< BFGSMAP >( name, event, feature, desc ) {}  EstimatorPtr launch( Property* property ) {    BFGSMAP* bfgs = new BFGSMAP();    bfgs->setMemorySize( memory_size.getValue() );    bfgs->setNumThreads( property->getNumThreads() );    bfgs->setGaussianPrior( property->newGaussianPrior() );    return EstimatorPtr( bfgs );  }};AMIS_NAMESPACE_END#endif // Amis_BFGSMAPLauncherItem_h_// end of BFGSMAPLauncherItem.h

⌨️ 快捷键说明

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