Examples of integrate()


Examples of org.apache.commons.math3.ode.nonstiff.DormandPrince853Integrator.integrate()

        integrator.addEventHandler(new ResettingEvent(11.01), 0.1, 1.0e-9, 1000);
        integrator.setInitialStepSize(3.0);

        double target = 30.0;
        double[] y = new double[1];
        double tEnd = integrator.integrate(equation, 0.0, y, target, y);
        Assert.assertEquals(target, tEnd, 1.0e-10);
        Assert.assertEquals(32.0, y[0], 1.0e-10);

    }
View Full Code Here

Examples of org.apache.commons.math3.ode.nonstiff.DormandPrince853Integrator.integrate()

        DormandPrince853Integrator integrator = new DormandPrince853Integrator(0.001, 1000, 1.0e-14, 1.0e-14);
        integrator.addEventHandler(new SecondaryStateEvent(index, -3.0), 0.1, 1.0e-9, 1000);
        integrator.setInitialStepSize(3.0);

        integrator.integrate(equation, 30.0);
        Assert.assertEquals( 1.0, equation.getTime(), 1.0e-10);
        Assert.assertEquals( 2.0, equation.getPrimaryState()[0], 1.0e-10);
        Assert.assertEquals(-3.0, equation.getSecondaryState(0)[0], 1.0e-10);

    }
View Full Code Here

Examples of org.apache.commons.math3.ode.nonstiff.GraggBulirschStoerIntegrator.integrate()

        integ.addStepHandler(new StepNormalizer(0.5, this, mode, bounds));
        double[] y   = {0.0};
        double start = reverse ? getEnd()   : getStart();
        double end   = reverse ? getStart() : getEnd();
        output       = new ArrayList<Double>();
        integ.integrate(this, start, y, end, y);
        double[] actual = new double[output.size()];
        for(int i = 0; i < actual.length; i++) {
            actual[i] = output.get(i);
        }
        Assert.assertArrayEquals(expected, actual, 1e-5);
View Full Code Here

Examples of org.infoglue.common.webappintegrator.WebappIntegrator.integrate()

      List<String> blockedParameters = new ArrayList<String>();
      blockedParameters.add("siteNodeId");
      blockedParameters.add("contentId");
      blockedParameters.add("languageId");
      blockedParameters.add("proxyUrl");
      produceResult(wi.integrate(returnCookies, returnHeaders, returnStatus, blockedParameters, hrefExclusionRegexp, linkExclusionRegexp, srcExclusionRegexp));
     
      pageContext.setAttribute("returnCookies", returnCookies);
      pageContext.setAttribute("returnHeaders", returnHeaders);
      pageContext.setAttribute("returnStatus", returnStatus);
     
View Full Code Here

Examples of org.tuba.plugins.IIntegrator.integrate()

  private String integrate(IArtefactPosition artefactPosition,
      IArtefactRepresentation representation, XMLIntegrator integrator) {
    IIntegrator integratorInstance = PluginManager.getInstance()
        .instantiateIntegrator(integrator.getId());

    String integrationID = integratorInstance.integrate(artefactPosition,
        representation, integrator.getConfiguration());
    if (integrationID == null)
      return null;

    DocumentInfo documentInfo = DocumentManager.getInstance()
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.