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

📄 bfgslauncheritem.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
#ifndef Amis_BFGSLauncherItem_h_#define Amis_BFGSLauncherItem_h_#include <amis/configure.h>#include <amis/EstimatorLauncher.h>#include <amis/Property.h>AMIS_NAMESPACE_BEGINclass BFGSLauncherItemBase : public EstimatorLauncherItem {public:  static PropertyItem< int > memory_size;public:  BFGSLauncherItemBase( const std::string& name,			const std::string& event,			const std::string& feature,			const std::string& desc )    : EstimatorLauncherItem( name, event, feature, desc ) {}};template < class BFGS >class BFGSLauncherItem : public BFGSLauncherItemBase {public:  BFGSLauncherItem( const std::string& name,		    const std::string& event,		    const std::string& feature,		    const std::string& desc )    : BFGSLauncherItemBase( name, event, feature, desc ) {}  EstimatorPtr launch( Property* property ) {    BFGS* bfgs = new BFGS();    bfgs->setMemorySize( memory_size.getValue() );    bfgs->setNumThreads( property->getNumThreads() );    return EstimatorPtr( bfgs );  }};AMIS_NAMESPACE_END#endif // Amis_BFGSLauncherItem_h_// end of BFGSLauncherItem.h

⌨️ 快捷键说明

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