Package org.encog.app.quant

Examples of org.encog.app.quant.QuantError


      final String[] cls,
      final double high, final double low) {
    if ((theAction != NormalizationAction.Equilateral)
        && (theAction != NormalizationAction.OneOf)
        && (theAction != NormalizationAction.SingleField)) {
      throw new QuantError("Unsupported normalization type");
    }

    this.action = theAction;
    this.classes.clear();
    this.normalizedHigh = high;
View Full Code Here


    int classNumber = lookup(str);
    if (classNumber == -1) {
      try {
        classNumber = Integer.parseInt(str);
      } catch (final NumberFormatException ex) {
        throw new QuantError("Can't determine class for: " + str);
      }
    }
    return encode(classNumber);

  }
View Full Code Here

   */
  public void init() {

    if (this.action == NormalizationAction.Equilateral) {
      if (this.classes.size() < MIN_EQ_CLASSES) {
        throw new QuantError(
          "There must be at least three classes to make "
          + "use of equilateral normalization.");
      }

      this.eq = new Equilateral(this.classes.size(), this.normalizedHigh,
View Full Code Here

      final int low) {

    if ((action != NormalizationAction.Equilateral)
        && (action != NormalizationAction.OneOf)
        && (action != NormalizationAction.SingleField)) {
      throw new QuantError("Unsupported normalization type");
    }

    this.action = theAction;
    this.classes.clear();
    this.normalizedHigh = high;
View Full Code Here

      final String[] cls,
      final double high, final double low) {
    if ((action != NormalizationAction.Equilateral)
        && (action != NormalizationAction.OneOf)
        && (action != NormalizationAction.SingleField)) {
      throw new QuantError("Unsupported normalization type");
    }

    this.action = theAction;
    this.classes.clear();
    this.normalizedHigh = high;
View Full Code Here

TOP

Related Classes of org.encog.app.quant.QuantError

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.