Package org.aavso.tools.vstar.util.model

Examples of org.aavso.tools.vstar.util.model.PeriodFitParameters


      harmonics.add(new Harmonic(freq2));

      // Specify the expected model parameters (generated by the model
      // creation process).
      List<PeriodFitParameters> expectedParams = new ArrayList<PeriodFitParameters>();
      expectedParams.add(new PeriodFitParameters(new Harmonic(freq1),
          0.1998, -0.1018, -0.1720, 3.9249, 2450446.0));
      expectedParams.add(new PeriodFitParameters(new Harmonic(freq2),
          0.0767, -0.0484, -0.0595, 3.9249, 2450446.0));

      // Drum roll please...
      commonTest(dcdft, harmonics, expectedParams,
          TwoPeriodModelExpectedData.expectedModelData,
View Full Code Here


      harmonics.add(new Harmonic(topFreq));

      // Specify the expected model parameters (generated by the model
      // creation process).
      List<PeriodFitParameters> expectedParams = new ArrayList<PeriodFitParameters>();
      expectedParams.add(new PeriodFitParameters(new Harmonic(topFreq), 1.7075,
          0.5359, 1.6213, 9.7440, 48680.0));

      // Drum roll please...
      commonTest(dcdft, harmonics, expectedParams, expectedModelData,
          expectedResidualData);
View Full Code Here

      int na = nb - 1;
      // Note: dcoef[na] is cos_coeff, dcoeff[nb] is sin_coeff,
      // dcoeff[0] is const_coeff, and dd is amplitude
      // [sqrt(cos_coeff^2+sin_coeff^2)].
      double dd = dcoef[na] * dcoef[na] + dcoef[nb] * dcoef[nb];
      parameters.add(new PeriodFitParameters(harmonics.get(nn - 1), Math
          .sqrt(dd), dcoef[na], dcoef[nb], dcoef[0],
          getZeroPointOffset()));
      // if (nn > 9) {
      // write(1,207) dfre(nn),1.0/dfre(nn),nn,dsqrt(dd),dcoef(na),

View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.util.model.PeriodFitParameters

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.