Package org.aavso.tools.vstar.util

Examples of org.aavso.tools.vstar.util.ApacheCommonsExtremaFinder


            double min = obs.get(0).getJD() - zeroPoint;
            double max = obs.get(obs.size() - 1).getJD()
                - zeroPoint;

            IExtremaFinder finder = new ApacheCommonsExtremaFinder(
                function, goal, min, max, zeroPoint);
            finder.execute();

            double extremeMag = finder.getExtremeMag();

            String strRepr = String.format("JD: %s, Mag: %s",
                NumericPrecisionPrefs.formatTime(finder
                    .getExtremeTime()),
                NumericPrecisionPrefs.formatMag(extremeMag));

            // Is the extremum within a reasonable range? If not,
            // set it to null.
View Full Code Here


            throws AlgorithmError {

          double min = obs.get(0).getJD();
          double max = obs.get(obs.size() - 1).getJD();

          IExtremaFinder finder = new ApacheCommonsExtremaFinder(
              function, goal, min, max);
          finder.execute();

          double extremeMag = finder.getExtremeMag();

          String strRepr = String.format("JD: %s, Mag: %s",
              NumericPrecisionPrefs.formatTime(finder
                  .getExtremeTime()), NumericPrecisionPrefs
                  .formatMag(extremeMag));

          // Is the extremum within a reasonable range? If not,
          // set it to null.
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.util.ApacheCommonsExtremaFinder

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.