Package org.encog.util.normalize.input

Examples of org.encog.util.normalize.input.InputField


  public final static TempDir TEMP_DIR = new TempDir();
  public final static File FILENAME = TEMP_DIR.createFile("norm.csv");

  private void generate()
  {
    InputField a;
    InputField b;
    InputField c;
    InputField d;
    InputField e;
   
    DataNormalization norm = new DataNormalization();
    norm.setReport(new NullStatusReportable());
    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.addInputField(a = new InputFieldArray2D(false,ARRAY_2D,0));
View Full Code Here


    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.process();
  }
 
  public DataNormalization create(double[][] outputArray) {
    InputField a;
    InputField b;
    InputField c;
    InputField d;
    InputField e;
   
    DataNormalization norm = new DataNormalization();
    norm.setReport(new NullStatusReportable());
    norm.setTarget(new NormalizationStorageCSV(FILENAME));
    norm.addInputField(a = new InputFieldCSV(false,FILENAME,0));
View Full Code Here

    norm.process();
    check(norm);
  }
 
  private void check(DataNormalization norm) {
    InputField a = norm.getInputFields().get(0);
    InputField b = norm.getInputFields().get(1);
   
    Assert.assertEquals(1.0,a.getMin(),0.1);
    Assert.assertEquals(6.0,a.getMax(),0.1);
    Assert.assertEquals(2.0,b.getMin(),0.1);
    Assert.assertEquals(7.0,b.getMax(),0.1);
   
    double[][] outputArray = ((NormalizationStorageArray2D)norm.getStorage()).getArray();
    for(int i=0;i<5;i++)
    {
      Assert.assertEquals(0.1,outputArray[0][i],0.1);
View Full Code Here

public class TestZAxis extends TestCase {
  double[][] SAMPLE1 = {{-10,5,15},{-2,1,3}};
 
  public DataNormalization create() {
    InputField a;
    InputField b;
    InputField c;
    double[][] arrayOutput = new double[2][4];
   
    NormalizationStorageArray2D target = new NormalizationStorageArray2D(arrayOutput);
    ZAxisGroup group = new ZAxisGroup();
    DataNormalization norm = new DataNormalization();
View Full Code Here

TOP

Related Classes of org.encog.util.normalize.input.InputField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.