booleanfunction.java

来自「Java遗传算法库」· Java 代码 · 共 30 行

JAVA
30
字号
package jaga.pj.circuits.experiment;

import jaga.BitSet;
import jaga.SampleData;
import java.io.Serializable;

/** An interface used to represent boolean functions
 *
 * @author  unknown
 * @version 
 */
public interface BooleanFunction extends Serializable
{
    /** returns the result of this function given the inputs in the array
     * @param inputs what values the inputs to the function have
    */
    public boolean getResult( boolean[] inputs );
    
    /** returns the amount of inputs needed to compute this function
    */
    public int getNumOfInputs();
    
    /** returns a set of SampleDatas providing a good set of input samples
     * to test this function
    */
    public SampleData[] getTestData();
    
    public void setRandomSeed( long seed );
}

⌨️ 快捷键说明

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