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

📄 qualityrulefilterloop.cpp

📁 The ROSETTA C++ library is a collection of C++ classes and routines that enable discernibility-based
💻 CPP
字号:
//-------------------------------------------------------------------// Author........: Thomas 舋otnes/Aleksander 豩rn// Date..........: 981026// Description...:// Revisions.....://===================================================================#include <stdafx.h> // Precompiled headers.#include <copyright.h>#include <kernel/algorithms/qualityrulefilterloop.h>#include <kernel/algorithms/ruleevaluator.h>#include <kernel/algorithms/keyword.h>#include <kernel/structures/roccurve.h>#include <kernel/structures/rulebasedclassification.h>#include <kernel/structures/informationvector.h>#include <kernel/utilities/iokit.h>#include <kernel/utilities/systemkit.h>#include <kernel/utilities/creator.h>#include <kernel/utilities/discerner.h>#include <kernel/basic/set.h>#include <kernel/basic/algorithm.h>#include <kernel/basic/message.h>#include <kernel/system/fstream.h>#include <kernel/system/math.h>#include <common/objectmanager.h>//-------------------------------------------------------------------// Static helpers (file scope).//===================================================================//-------------------------------------------------------------------// Method........: StaticGetDecisionClass// Author........: Aleksander 豩rn// Date..........:// Description...:// Comments......:// Revisions.....://===================================================================static intStaticGetDecisionClass(const String &name, const DecisionTable &table, bool masked) {	if (name == Undefined::String())		return Undefined::Integer();	// Get decision attribute index.	int decision_attribute = table.GetDecisionAttribute(masked);	if (decision_attribute == Undefined::Integer())		return Undefined::Integer();	// Determine decision class.	int decision_class = table.GetDictionaryEntry(decision_attribute, name, masked);	if (decision_class == Undefined::Integer() && name.IsInteger())		decision_class = name.GetInteger();	return decision_class;}//-------------------------------------------------------------------// Methods for class QualityRuleFilterLoop.//===================================================================//-------------------------------------------------------------------// Constructors/destructor.//===================================================================QualityRuleFilterLoop::QualityRuleFilterLoop() {	UseLower(false);	UseUpper(false);	InvertLogic(false);	SetFilename(Undefined::String());	SetROCFocusClass(Undefined::String());	SetROCFallbackCertainty(0.5);	SetResolution(RESOLUTION_DYNAMIC);	SetFixedResolution(10);	SetDynamicResolution(0.01f);	SetResolutionLimit(100);}QualityRuleFilterLoop::~QualityRuleFilterLoop() {}//-------------------------------------------------------------------// Methods inherited from Identifier.//===================================================================IMPLEMENTIDMETHODS(QualityRuleFilterLoop, QUALITYRULEFILTERLOOP, QualityRuleFilter)//-------------------------------------------------------------------// Methods inherited from Algorithm.//===================================================================//-------------------------------------------------------------------// Method........: GetParameters// Author........: Thomas 舋otnes// Date..........: 981026// Description...:// Comments......:// Revisions.....: A

⌨️ 快捷键说明

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