Package org.encog.ml.data.basic

Examples of org.encog.ml.data.basic.BasicMLData.times()


    for (MLData out: outputs)
    {
      acc = (BasicMLData) acc.plus(out);
    }

    acc = (BasicMLData) acc.times(1.0 / outputs.size());
    return   acc;

  }

  @Override
View Full Code Here


    {
      MLData thresholdedOut = threshold(out, threshold, lowValue, highValue);
      acc = (BasicMLData) acc.plus(thresholdedOut);
    }

    acc = (BasicMLData) acc.times(1.0 / outputs.size());
    return threshold(acc, threshold, lowValue, highValue);
  }
 
  private MLData threshold(MLData d, double threshold, double lowValue, double highValue) {
    MLData result = new BasicMLData(d.size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.