Package de.torstennahm.integrate

Examples of de.torstennahm.integrate.IntegrationResult


    if (destroyed) { return; }
   
    if (data instanceof CorrectValue) {
      correctResult = ((CorrectValue) data).correctValue;
    } else if (data instanceof NewResult) {
      IntegrationResult result = ((NewResult) data).result;
      synchronized (resultList) {
        if (calls < 100 || result.functionCalls() >= calls * SAMPLEFACTOR) {
          calls = result.functionCalls();
          resultList.add(new ResultEntry(calls, result.value(), result.errorEstimate()));
          resultPanel.repaint();
        }
        estimator.log(result.functionCalls(), result.value());
      }
    }
  }
View Full Code Here


      integrand = ((Integrand) data).integrand;
    } else if (data instanceof StartIntegration) {
      millisStart = System.currentTimeMillis();
    } else if (data instanceof StopIntegration) {
      millisEnd = System.currentTimeMillis();
      IntegrationResult result = ((StopIntegration) data).result;
      System.out.println((integrand == null ? "Unknown" : integrand.toString()) + "\t" + result.value() + "\t" + result.errorEstimate() + "\t" + (millisEnd - millisStart));
    }
  }
View Full Code Here

TOP

Related Classes of de.torstennahm.integrate.IntegrationResult

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.