net.aerith.misao.util
Class CometaryMagnitudeFormula

java.lang.Object
  |
  +--net.aerith.misao.util.CometaryMagnitudeFormula

public class CometaryMagnitudeFormula
extends java.lang.Object
implements MagnitudeFormula

The CometaryMagnitudeFormula represents a formula to calculate the magnitude of a comet.


Field Summary
protected  double k
          The coefficient of log r.
protected  double m0
          The standard magnitude.
 
Constructor Summary
CometaryMagnitudeFormula(double m0, double k)
          Constructs a CometaryMagnitudeFormula.
 
Method Summary
 double calculate(EphemerisRecord record, Orbit orbit)
          Calculates the magnitude.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m0

protected double m0
The standard magnitude.

k

protected double k
The coefficient of log r.
Constructor Detail

CometaryMagnitudeFormula

public CometaryMagnitudeFormula(double m0,
                                double k)
Constructs a CometaryMagnitudeFormula.
Parameters:
m0 - the standard magnitude.
k - the coefficient of log r.
Method Detail

calculate

public double calculate(EphemerisRecord record,
                        Orbit orbit)
Calculates the magnitude.
Specified by:
calculate in interface MagnitudeFormula
Parameters:
record - the ephemeris record.
orbit - the orbital elements.