Package org.aavso.tools.vstar.data

Examples of org.aavso.tools.vstar.data.Magnitude


    List<ValidObservation> obs = new ArrayList<ValidObservation>();

    for (double[] pair : jdMagData) {
      ValidObservation ob = new ValidObservation();
      ob.setDateInfo(new DateInfo(pair[0]));
      ob.setMagnitude(new Magnitude(pair[1], 0));
      obs.add(ob);
    }

    BinningResult result = DescStats.createSymmetricBinnedObservations(obs,
        JDTimeElementEntity.instance, 10);
View Full Code Here


  public void testMagnitudeMatcherTest1() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.EQUALS);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(4.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest2() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.LESS_THAN);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(3.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest3() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.GREATER_THAN);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(5.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest4a() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.LESS_THAN_OR_EQUAL);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(3.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest4b() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.LESS_THAN_OR_EQUAL);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(4.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest5a() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.GREATER_THAN_OR_EQUAL);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(5.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

  public void testMagnitudeMatcherTest5b() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.GREATER_THAN_OR_EQUAL);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(4.0, 0));
   
    assertTrue(matcher.matches(ob));
  }
View Full Code Here

    filter.addMatcher(matcher1);
    filter.addMatcher(matcher2);

    ValidObservation ob = new ValidObservation();
    ob.setObsCode("ABC");
    ob.setMagnitude(new Magnitude(3.0, 0));
   
    assertTrue(filter.matches(ob));
  }
View Full Code Here

    super(name);
    obs = new ArrayList<ValidObservation>();
    for (double[] jd_mag_pair : jd_and_mag) {
      ValidObservation ob = new ValidObservation();
      ob.setDateInfo(new DateInfo(jd_mag_pair[0]));
      ob.setMagnitude(new Magnitude(jd_mag_pair[1], 0));
      obs.add(ob);
    }
  }
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.data.Magnitude

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.