hitsfitness.h
来自「粗糙集应用软件」· C头文件 代码 · 共 36 行
H
36 行
// HitsFitness.h: interface for the HitsFitness class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HITSFITNESS_H__F2ED4F81_3DDE_11D2_AF91_000000000000__INCLUDED_)
#define AFX_HITSFITNESS_H__F2ED4F81_3DDE_11D2_AF91_000000000000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "../copyright.h" // Added 000323 by Aleksander 豩rn.
#include "../ea/AbstractFitness.h"
#include "../ea/EABitset.h"
#include "../ea/macros.h"
#include "Context.h"
class HitsFitness : public AbstractFitness
{
protected:
Vector(float) &costs;
float fbias;
Context &context;
float sum_costs;
public:
virtual double eval(Individual * ind);
float term2(EABitset * b);
float term1(EABitset *b);
HitsFitness(Context &c);
virtual ~HitsFitness();
};
#endif // !defined(AFX_HITSFITNESS_H__F2ED4F81_3DDE_11D2_AF91_000000000000__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?