net.aerith.misao.util
Class MeanStarImageRadius

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

public class MeanStarImageRadius
extends java.lang.Object

The MeanStarImageRadius represents the mean radius of the star images. It has an equation which represents the relation between the peak value and the radius.

The equation is:

     radius = base_radius + gradient * log ( peak )
 


Field Summary
protected  double base_radius
          The base radius of the equation.
protected  double gradient
          The gradient of the equation.
 
Constructor Summary
MeanStarImageRadius()
          Constructs an empry MeanStarImageRadius.
MeanStarImageRadius(java.util.Vector ap_list)
          Constructs a MeanStarImageRadius.
 
Method Summary
 java.lang.String getOutputString()
          Returns a string representation of the state of this object.
 double getRadius(double peak)
          Gets the mean radius of the specified peak.
protected  java.lang.String paramString()
          Returns a raw string representation of the state of this object, for debugging use.
 java.lang.String toString()
          Returns a string representation of the state of this object, for debugging use.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

base_radius

protected double base_radius
The base radius of the equation.

gradient

protected double gradient
The gradient of the equation.
Constructor Detail

MeanStarImageRadius

public MeanStarImageRadius()
Constructs an empry MeanStarImageRadius.

MeanStarImageRadius

public MeanStarImageRadius(java.util.Vector ap_list)
Constructs a MeanStarImageRadius.
Parameters:
ap_list - the list of adjoining pixels.
Method Detail

getRadius

public double getRadius(double peak)
Gets the mean radius of the specified peak.
Parameters:
peak - the peak value.
Returns:
the mean radius of the specified peak.

getOutputString

public java.lang.String getOutputString()
Returns a string representation of the state of this object.
Returns:
a string representation of the state of this object.

paramString

protected java.lang.String paramString()
Returns a raw string representation of the state of this object, for debugging use. It should be invoked from toString method of the subclasses.
Returns:
a string representation of the state of this object.

toString

public java.lang.String toString()
Returns a string representation of the state of this object, for debugging use.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the state of this object.