Package org.aavso.tools.vstar.ui.model.plot

Examples of org.aavso.tools.vstar.ui.model.plot.ContinuousModelFunction


            // y += coeffs[0];
            // return y;
            // }
            // };

            return new ContinuousModelFunction(function, fit,
                zeroPoint);
          }

          // An alternative implementation for getModelFunction() that
          // uses Horner's method to avoid exponentiation.
View Full Code Here


          y += params.toValue(t);
        }
        return y;
      }
    };
    return new ContinuousModelFunction(func, fit);
  }
View Full Code Here

          return strRepr;
        }

        @Override
        public ContinuousModelFunction getModelFunction() {
          return new ContinuousModelFunction(function, fit);
        }

        @Override
        public void execute() throws AlgorithmError {
View Full Code Here

    ValidObservationTableModel validObsTableModel = new ValidObservationTableModel(
        validObsList, getLatestNewStarMessage().getNewStarType()
            .getPhasePlotTableColumnInfoSource());

    // Observation-and-mean plot and table.
    ContinuousModelFunction rawModelFuncModel = obsAndMeanPlotModel
        .getModelFunction();

    ContinuousModelFunction prevCyclePhaseModelFuncModel = null;
    ContinuousModelFunction stdPhaseModelFuncModel = null;
    int modelFuncSeriesNum = ObservationAndMeanPlotModel.NO_SERIES;

    if (rawModelFuncModel != null) {
      // Use sorted fit from category map; this will also be compatible,
      // order-wise, with previous cycle phase.
      List<ValidObservation> phasedFit = phasedValidObservationCategoryMap
          .get(SeriesType.Model);

      prevCyclePhaseModelFuncModel = new ContinuousModelFunction(
          rawModelFuncModel.getFunction(), phasedFit,
          rawModelFuncModel.getZeroPoint(),
          PreviousCyclePhaseCoordSource.instance);

      stdPhaseModelFuncModel = new ContinuousModelFunction(
          rawModelFuncModel.getFunction(), phasedFit,
          rawModelFuncModel.getZeroPoint(),
          StandardPhaseCoordSource.instance);

      modelFuncSeriesNum = obsAndMeanPlotModel
          .getModelFunctionSeriesNum();
    }

    PhasedObservationAndMeanPlotModel obsAndMeanPlotModel1 = new PhasedObservationAndMeanPlotModel(
        phasedValidObservationCategoryMap,
        PreviousCyclePhaseCoordSource.instance,
        PreviousCyclePhaseComparator.instance,
        PhaseTimeElementEntity.instance, seriesVisibilityMap,
        prevCyclePhaseModelFuncModel, modelFuncSeriesNum);

    if (prevCyclePhaseModelFuncModel != null) {
      prevCyclePhaseModelFuncModel.setPpModel(obsAndMeanPlotModel1);
    }

    PhasedObservationAndMeanPlotModel obsAndMeanPlotModel2 = new PhasedObservationAndMeanPlotModel(
        phasedValidObservationCategoryMap,
        StandardPhaseCoordSource.instance,
        StandardPhaseComparator.instance,
        PhaseTimeElementEntity.instance, seriesVisibilityMap,
        stdPhaseModelFuncModel, modelFuncSeriesNum);

    if (stdPhaseModelFuncModel != null) {
      stdPhaseModelFuncModel.setPpModel(obsAndMeanPlotModel2);
    }

    // Select an arbitrary model for mean.
    obsAndMeanPlotModel = obsAndMeanPlotModel1;
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.model.plot.ContinuousModelFunction

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.