Package org.apache.commons.math.ode

Examples of org.apache.commons.math.ode.SwitchingFunction


          new HighamHall54Integrator(minStep, maxStep,
                                     scalAbsoluteTolerance, scalRelativeTolerance);
      TestProblemHandler handler = new TestProblemHandler(pb, integ);
      integ.setStepHandler(handler);

      integ.addSwitchingFunction(new SwitchingFunction() {
        public int eventOccurred(double t, double[] y) {
          return SwitchingFunction.CONTINUE;
        }
        public double g(double t, double[] y) throws FunctionEvaluationException {
          double middle = (pb.getInitialTime() + pb.getFinalTime()) / 2;
View Full Code Here


        new HighamHall54Integrator(minStep, maxStep,
                                   scalAbsoluteTolerance, scalRelativeTolerance);
    TestProblemHandler handler = new TestProblemHandler(pb, integ);
    integ.setStepHandler(handler);

    integ.addSwitchingFunction(new SwitchingFunction() {
      public int eventOccurred(double t, double[] y) {
        return SwitchingFunction.CONTINUE;
      }
      public double g(double t, double[] y) {
        double middle = (pb.getInitialTime() + pb.getFinalTime()) / 2;
View Full Code Here

TOP

Related Classes of org.apache.commons.math.ode.SwitchingFunction

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.