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

📄 sets.java

📁 这是用遗传编程算法来拟合曲线的一个经典程序
💻 JAVA
字号:
/*作者:徐朝*/
/*keystonexu@yahoo.com.cn*/
package regression.function;
import kernel.*;
/**
*这个类为生成语法树做准备
*/

public class Sets extends SetInterface
{
	public Sets()
	{
		TerminalSet = new Class[2];
		TerminalSet[0] = new RandomConstant().getClass();
		TerminalSet[1] = new Variable().getClass();

		FunctionSet = new Class[4];
		FunctionSet[0] = new Addition().getClass();
		FunctionSet[1] = new Subtraction().getClass();
		FunctionSet[2] = new Multiplication().getClass();
		FunctionSet[3] = new Division().getClass();
			
	}
}

⌨️ 快捷键说明

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