📄 estimation_and_sampling.hxx
字号:
// Time-stamp: <2007-07-11 01:27:06 handa>#ifndef ESTIMATION_AND_SAMPLING_H#define ESTIMATION_AND_SAMPLING_Husing namespace std;#include "chromoso.h"#include <vector>template <class T> class estimation_and_sampling {public: random_number& rn; estimation_and_sampling<T>(random_number& r): rn(r) { } // Estimating the joint prob. from pool and sampling // new populations (pop), that is, the preceeding population // is destroyed at this moment. virtual void generating(vector<chromosome<T> *>& pool, list<chromosome<T> *>& pop) =0; virtual estimation_and_sampling<T>& operator=(const estimation_and_sampling<T>& arg) { if(this == &arg) return *this; rn = arg.rn; // random }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -