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

📄 bfgsmaplauncheritem.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -