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

📄 tree.java

📁 Genetic Programming。GP算法在方程逼近求解上的应用。
💻 JAVA
字号:
//Tree Node,store information about fitness and Root Node of An individualclass Tree {        public TreeNode program;        double standardizedFitness;        double adjustedFitness;        double normalizedFitness;        int hits;        Tree(TreeNode p) {                program = (TreeNode)p.clone();                standardizedFitness = 0.0;                adjustedFitness = 0.0;                normalizedFitness = 0.0;                hits = 0;        }        Tree copy() {                Tree newInd = new Tree(this.program);                newInd.standardizedFitness = this.standardizedFitness;                newInd.adjustedFitness = this.adjustedFitness;                newInd.normalizedFitness = this.normalizedFitness;                newInd.hits = this.hits;                return newInd;        }}

⌨️ 快捷键说明

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