14#include <NANA/core.hpp>
24 CGeneInt(
int minV,
int maxV);
34 std::vector<bool> m_gene;
46 GeneFloat(
double minV,
double maxV,
double eps);
69 static void cross(
const GeneFloat& father,
const GeneFloat& mother, GeneFloat& child);
78 std::vector<bool> m_gene;
static void cross(const GeneFloat &father, const GeneFloat &mother, GeneFloat &child)
染色体的交换
int translate()
将基因转化为对应的值
double translate()
转录,将基因信息转为值
#define NA_API
兼容windows系统与linux系统