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

📄 rsesreducts.h

📁 粗慥集成算法集合 ,并有详细的文档资料和测试数据处
💻 H
字号:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960629
// Description...:
// Revisions.....:
//===================================================================

#ifndef __RSESREDUCTS_H__
#define __RSESREDUCTS_H__

#include <copyright.h>

#include <kernel/structures/reducts.h>

//-------------------------------------------------------------------
// Class prototypes.
//===================================================================

class TRedRulMem;

//-------------------------------------------------------------------
// Class.........: RSESReducts
// Author........: Aleksander 豩rn
// Date..........: 960629
// Description...: Wrapper class for reduct (and rule) memory from
//                 the RSES library.
// Revisions.....:
//===================================================================

class RSESReducts : public Reducts {
private:

	//- Friend declarations............................................
  friend class RSESStaticReducer;
	friend class RSESRuleGenerator;
	friend class RSESReductShortener;
	friend class RSESClassifier;
	friend class RSESRules;

private:

	//- Private variables..............................................
	TRedRulMem         *reducts_;  // From the RSES library.
	bool                is_owner_; // Does this wrapper "own" the embedded TRedRulMem object?

private:

	//- Build individual wrappers from scratch.........................
	bool                BuildWrappers(RSESRules *rules = NULL);

	//- Take and propagate ownership...................................
	void                TakeOwnership(bool ownership);

protected:

  //- Constructors...................................................
  RSESReducts(const RSESReducts &in);

public:

  //- Constructors/destructor........................................
  RSESReducts();
  virtual ~RSESReducts();

  //- Methods inherited from Identifier..............................
	DECLAREIDMETHODS()

  //- Methods inherited from Persistent..............................
  virtual bool        Load(ifstream &stream);
  virtual bool        Save(ofstream &stream) const;

  //- Methods inherited from Structure...............................
  virtual Structure  *Duplicate() const;
	virtual void        Clear();

	//- Methods inherited from ParentStructure.........................
  virtual bool        InsertChild(Structure *child, int i);
  virtual bool        AppendChild(Structure *child);

	//- Methods inherited from Structures..............................
  virtual bool        InsertStructure(Structure *structure, int i);
  virtual bool        AppendStructure(Structure *structure);
  virtual bool        RemoveStructure(int i);
	virtual bool        RemoveAllStructures();
	virtual Structures *DuplicateStructure(int i) const;

	//- Methods inherited from Reducts.................................
	virtual bool        Sort(int property, bool ascending);
	virtual bool        PostCreation(const DecisionTable &table, const Discerner &discerner, bool modulo);
	virtual bool        AppendReduct(Reduct *reduct, const DecisionTable &table, int object_no, bool masked, bool modulo, bool verify);

};

#endif

⌨️ 快捷键说明

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