Examples of calculate()


Examples of org.encog.engine.util.ErrorCalculation.calculate()

    for (int i = 0; i < data.getRecordCount(); i++) {
      data.getRecord(i, pair);
      compute(pair.getInputArray(), actual);
      errorCalculation.updateError(actual, pair.getIdealArray());
    }
    return errorCalculation.calculate();
  }

  /**
   * Clear any context neurons.
   */
 
View Full Code Here

Examples of org.encog.mathutil.error.ErrorCalculation.calculate()

      errorCalculation.updateError(output.getData(), pair.getIdeal()
          .getData(),pair.getSignificance());
    }

    // set the global error
    setError(errorCalculation.calculate());
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

Examples of org.encog.mathutil.probability.CalcProbability.calculate()

    EnumerationQuery query = new EnumerationQuery(network);
   
    CalcProbability messageProbability = new CalcProbability(this.k);
    messageProbability.addClass(SPAM_DATA.length);
    messageProbability.addClass(HAM_DATA.length);
    double probSpam = messageProbability.calculate(0);

    spamEvent.getTable().addLine(probSpam, true);
    query.defineEventType(spamEvent, EventType.Outcome);
    query.setEventValue(spamEvent, true);
       
View Full Code Here

Examples of org.encog.util.normalize.output.OutputFieldRangeMapped.calculate()

    InputField ifield = new BasicInputField();
    ifield.setCurrentValue(100);
    ifield.setMin(0);
    ifield.setMax(200);
    OutputFieldRangeMapped orm = new OutputFieldRangeMapped(ifield,-1,1);
    log.info(String.valueOf(orm.calculate(0)));
    log.info(String.valueOf(orm.convertBack(0)));
   

    InputField a,b;
    double[][] arrayOutput = new double[2][2];
View Full Code Here

Examples of org.geotools.graph.path.AStarShortestPathFinder.calculate()

     
      AStarShortestPathFinder walker =
          new AStarShortestPathFinder(builder().getGraph(),root,((Node) map.get("0.1.0.1")),
                                  f.createFunctions(((Node) map.get("0.1.0.1"))));
     
      walker.calculate();
      MyVisitor visitor = new MyVisitor();
      builder().getGraph().visitNodes(visitor);
      //#1
      assertTrue(visitor.count > 0);
      assertTrue(visitor.count < map.size() + 1);
View Full Code Here

Examples of org.geotools.graph.path.DijkstraShortestPathFinder.calculate()

        };

        List<Edge> edgeList = new ArrayList<Edge>();
        for ( int i = 0; i < list.size() - 1; i++ ) {
            DijkstraShortestPathFinder pf = new DijkstraShortestPathFinder( graph, list.get( i ), weighter );
            pf.calculate();
            Path path = pf.getPath( list.get( i + 1 ) );
            if ( path != null ) {
                edgeList.addAll( path.getEdges() );
            }
        }
View Full Code Here

Examples of org.jmol.api.MepCalculationInterface.calculate()

  }

  protected void generateCube() {
    volumeData.voxelData = voxelData = new float[nPointsX][nPointsY][nPointsZ];
    MepCalculationInterface m = (MepCalculationInterface) Interface.getOptionInterface("quantum." + type + "Calculation");
    m.calculate(volumeData, bsMySelected, atomData.atomXyz,
          params.theProperty, params.mep_calcType);
  }
}
View Full Code Here

Examples of org.jmol.geodesic.EnvelopeCalculation.calculate()

 
  public Point3f[] calculateSurface(BitSet bsSelected, float envelopeRadius) {
    if (envelopeRadius < 0)
      envelopeRadius = EnvelopeCalculation.SURFACE_DISTANCE_FOR_CALCULATION;
    EnvelopeCalculation ec = new EnvelopeCalculation(viewer, atomCount, null, viewer.getTestFlag2());
    ec.calculate(new RadiusData(envelopeRadius, RadiusData.TYPE_ABSOLUTE, 0),
        Float.MAX_VALUE,
        bsSelected, BitSetUtil.copyInvert(bsSelected, atomCount),
        false, false, false, true);
    Point3f[] points = ec.getPoints();
    surfaceDistanceMax = 0;
View Full Code Here

Examples of org.jquantlib.model.volatility.ConstantEstimator.calculate()

    @Test
    public void testCECalculate() {
        final SimpleLocalEstimator       sle = new SimpleLocalEstimator(1/360.0);
        final TimeSeries<Double>      locale = sle.calculate(ts);
        final VolatilityCompositor        ce = new ConstantEstimator(1);
        final TimeSeries<Double>       value = ce.calculate(locale);
        assertNotNull(value) ;
    }

}
View Full Code Here

Examples of org.jquantlib.model.volatility.SimpleLocalEstimator.calculate()

    }

    @Test
    public void testSECalculate() {
        final SimpleLocalEstimator sle = new SimpleLocalEstimator(1/360.0);
        final TimeSeries<Double> locale = sle.calculate(ts);
        assertNotNull(locale) ;
    }

    @Test
    public void testCECalculate() {
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.