Examples of Equilateral


Examples of com.heatonresearch.aifh.normalize.Equilateral

        for (final Map.Entry<String, Integer> entry : items.entrySet()) {
            invMap.put(entry.getValue(), entry.getKey());
        }

        // now we can query
        final Equilateral eq = new Equilateral(items.size(), high, low);
        for (final BasicData data : theTrainingData) {
            final double[] output = alg.computeRegression(data.getInput());
            final int idealIndex = eq.decode(data.getIdeal());
            final int actualIndex = eq.decode(output);
            System.out.println(Arrays.toString(data.getInput()) + " -> " + invMap.get(actualIndex)
                    + ", Ideal: " + invMap.get(idealIndex));
        }
    }
View Full Code Here

Examples of com.heatonresearch.aifh.normalize.Equilateral

        for (final Map.Entry<String, Integer> entry : items.entrySet()) {
            invMap.put(entry.getValue(), entry.getKey());
        }

        // now we can query
        final Equilateral eq = new Equilateral(items.size(), high, low);
        for (final BasicData data : theTrainingData) {
            final double[] output = alg.computeRegression(data.getInput());
            final int idealIndex = eq.decode(data.getIdeal());
            final int actualIndex = eq.decode(output);
            System.out.println(Arrays.toString(data.getInput()) + " -> " + invMap.get(actualIndex)
                    + ", Ideal: " + invMap.get(idealIndex));
        }
    }
View Full Code Here

Examples of org.encog.mathutil.Equilateral

        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,
          this.normalizedLow);
    }

    // build lookup map
    for (int i = 0; i < this.classes.size(); i++) {
View Full Code Here

Examples of org.encog.mathutil.Equilateral

        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,
          this.normalizedLow);
    }

    // build lookup map
    for (int i = 0; i < this.classes.size(); i++) {
View Full Code Here

Examples of org.encog.mathutil.Equilateral

        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,
          this.normalizedLow);
    }

    // build lookup map
    for (int i = 0; i < this.classes.size(); i++) {
View Full Code Here

Examples of org.encog.mathutil.Equilateral

        break;
      }
    }

    if (this.equilateral == null) {
      this.equilateral = new Equilateral(this.items.size(), this.high,
          this.low);
    }
  }
View Full Code Here

Examples of org.encog.mathutil.Equilateral

        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,
          this.normalizedLow);
    }

    // build lookup map
    for (int i = 0; i < this.classes.size(); i++) {
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Equilateral

    /**
     * Creates and modifies an equilateral triangle.
     */
    @Override
    protected void createAndModifyEntity() {
        Equilateral equilateral = new Equilateral();
        equilateral.setBase(1);
        equilateral.setFormType(FormType.TRIANGLE_EQUILATERAL);
        entityManager.persist(equilateral);
        entityManager.flush();

        equilateral.setBase(2);
        entityManager.flush();

    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Equilateral

    /**
     * Creates and refreshes an equilateral triangle.
     */
    @Override
    protected void createAndRefreshEntity() {
        Equilateral equilateral = new Equilateral();
        equilateral.setBase(1);
        equilateral.setFormType(FormType.TRIANGLE_EQUILATERAL);
        entityManager.persist(equilateral);
        entityManager.flush();

        entityManager.refresh(equilateral);
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Equilateral

    /**
     * Creates and removes an equilateral triangle.
     */
    @Override
    protected void createAndRemoveEntity() {
        Equilateral equilateral = new Equilateral();
        equilateral.setBase(1);
        equilateral.setFormType(FormType.TRIANGLE_EQUILATERAL);
        entityManager.persist(equilateral);
        entityManager.flush();

        entityManager.remove(equilateral);
        entityManager.flush();
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.