Package org.encog.app.analyst.script

Examples of org.encog.app.analyst.script.DataField


    Assert.assertEquals(isInteger, df.isInteger() );
    Assert.assertEquals(isReal, df.isReal() );   
  }
 
  public void dumpDataField(int i) {
    DataField df = this.encogAnalyst.getScript().getFields()[i];
    System.out.print(Format.formatDouble(df.getMax(),6));
    System.out.print(";");
    System.out.print(Format.formatDouble(df.getMean(),6));
    System.out.print(";");
    System.out.print(Format.formatDouble(df.getMin(),6));
    System.out.print(";");
    System.out.print(Format.formatDouble(df.getStandardDeviation(),6));
    System.out.print(";");
    System.out.print(df.getName());
    System.out.print(";");
    System.out.print(df.isClass()?'1':'0');
    System.out.print(";");
    System.out.print(df.isComplete()?'1':'0');
    System.out.print(";");
    System.out.print(df.isInteger()?'1':'0');
    System.out.print(";");
    System.out.println(df.isReal()?'1':'0');
  }
View Full Code Here


    System.out.print(";");
    System.out.println(df.isReal()?'1':'0');
  }

  public void validateDataClass(int i, String... args) {
    DataField df = this.encogAnalyst.getScript().getFields()[i];
    Assert.assertEquals(args.length, df.getClassMembers().size());
    for(int j=0;j<df.getClassMembers().size();j++) {
      Assert.assertEquals(args[j], df.getClassMembers().get(j).getName());
    }   
  }
View Full Code Here

  public int determineMode(EncogAnalyst analyst) {
    if( !this.isClassify() ) {
      throw new AnalystError("Can only calculate the mode for a class.");
    }
   
    DataField df = analyst.getScript().findDataField(this.name);
    AnalystClassItem m = null;
    int result = 0;
    int idx = 0;
    for( AnalystClassItem item: df.getClassMembers() )
    {
      if( m==null || m.getCount()<item.getCount() ) {
        m = item;
        result = idx;
      }
View Full Code Here

TOP

Related Classes of org.encog.app.analyst.script.DataField

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.