Package org.aavso.tools.vstar.util.stats

Examples of org.aavso.tools.vstar.util.stats.BinningResult


      ob.setDateInfo(new DateInfo(pair[0]));
      ob.setMagnitude(new Magnitude(pair[1], 0));
      obs.add(ob);
    }

    BinningResult result = DescStats.createSymmetricBinnedObservations(obs,
        JDTimeElementEntity.instance, 10);
   
    double fValue = result.getFValue();
    assertEquals("2.87", String.format("%2.2f", fValue));

    double pValue = result.getPValue();
    assertEquals("0.000002", String.format("%1.6f", pValue));
   
    int k = result.getMagnitudeBins().size();
   
    int dfW = result.getWithinGroupDF();
    assertEquals(obs.size()-k, dfW);
   
    int dfB = result.getBetweenGroupDF();
    assertEquals(k-1, dfB);
  }
View Full Code Here


      AnalysisType type = mediator.getAnalysisType();

      ObservationAndMeanPlotModel model = mediator
          .getObservationPlotModel(type);

      BinningResult binningResult = model.getBinningResult();

      String msg = binningResult.createAnovaText();
     
      List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
      fields.add(new TextField("ANOVA", msg, TextField.Kind.AREA));
      new TextDialog(
          "ANOVA for " + binningResult.getSeries() + " series",
          fields);
    }
  }
View Full Code Here

          PhaseCalcs.setPhases(phObs, epoch, period);

          Collections.sort(phObs, StandardPhaseComparator.instance);

          // Note: 1 / bins = 1 cycle divided into N bins
          BinningResult binningResult = DescStats
              .createSymmetricBinnedObservations(phObs,
                  PhaseTimeElementEntity.instance, 1.0 / bins);

          // Collect results
          frequencies.add(1.0 / period);
          periods.add(period);

          double fValue = binningResult.getFValue();
          fValues.add(fValue);
          if (fValue < smallestFValue) {
            smallestFValue = fValue;
            smallestValueIndex = fValues.size() - 1;
          }

          pValues.add(binningResult.getPValue());
        }

        collectTopHits();
      }
    }
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.util.stats.BinningResult

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.