myrulefilter.cpp

来自「粗糙集应用软件」· C++ 代码 · 共 63 行

CPP
63
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#include <stdafx.h> // Precompiled headers.
#include <copyright.h>

#include <kernel/algorithms/myrulefilter.h>
#include <kernel/algorithms/keyword.h>

#include <kernel/structures/rule.h>
#include <kernel/structures/rules.h>

//-------------------------------------------------------------------
// Methods for class MyRuleFilter.
//===================================================================

//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================

MyRuleFilter::MyRuleFilter() {
	SetFilteringStrategy(0);
	SetFilteringConnective(CONNECTIVE_OR);
	SetDecision(Undefined::Integer());
	IsDominatingDecision(false);
	SetLowerRHSSupportThreshold(0);
	SetUpperRHSSupportThreshold(4);
	SetLowerRHSAccuracyThreshold(0.0f);
	SetUpperRHSAccuracyThreshold(0.75f);
	SetLowerRHSCoverageThreshold(0.0f);
	SetUpperRHSCoverageThreshold(0.05f);
	SetLowerRHSStabilityThreshold(0.0);
	SetUpperRHSStabilityThreshold(0.5);
	SetLowerLHSLengthThreshold(5);
	SetUpperLHSLengthThreshold(1000);
	SetAttribute(Undefined::Integer());
	SetAttributeValue(Undefined::Integer());
}

MyRuleFilter::~MyRuleFilter() {
}

//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================

IMPLEMENTIDMETHODS(MyRuleFilter, MYRULEFILTER, RuleFilter)

//-------------------------------------------------------------------
// Methods inherited from Algorithm.
//===================================================================

//-------------------------------------------------------------------
// Method........: GetParameters
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....: A

⌨️ 快捷键说明

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