net.aerith.misao.util
Class MagnitudeAdjustment

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

public class MagnitudeAdjustment
extends java.lang.Object

The MagnitudeAdjustment represents a formula to convert magnitude of a star in the first list to that of a star in the second list based on a cubic function.


Field Summary
protected  SimultaneousEquation se
          The cubic funciton.
 
Constructor Summary
MagnitudeAdjustment(java.util.Vector pair_list)
          Constructs a MagnitudeAdjustment based on the specified list of StarPair.
 
Method Summary
 double adjust(double mag)
          Adjusts the specified magnitude and returns the new magnitude.
 boolean isProper()
          Returns true if the solved cubic function is monotone increasing.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

se

protected SimultaneousEquation se
The cubic funciton.
Constructor Detail

MagnitudeAdjustment

public MagnitudeAdjustment(java.util.Vector pair_list)
Constructs a MagnitudeAdjustment based on the specified list of StarPair.
Parameters:
pair_list - the list of pairs of two stars.
Method Detail

isProper

public boolean isProper()
Returns true if the solved cubic function is monotone increasing. If false, it implies the magnitude adjustment will be incorrect.
Returns:
true if the solved cubic function is monotone increasing.

adjust

public double adjust(double mag)
Adjusts the specified magnitude and returns the new magnitude.
Parameters:
mag - the magnitude to be adjusted.
Returns:
the adjusted magnitude.