net.aerith.misao.pixy.limiting_mag
Class DefaultLimitingValueEstimator

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.pixy.limiting_mag.DefaultLimitingValueEstimator

public class DefaultLimitingValueEstimator
extends Operation

The DefaultLimitingValueEstimator is a class to estimate the threshold of the amount of pixel values between the real star images and the noises, based on the pairing ratio between detected stars and catalog data.

The Star data in the specified list must have the link to the StarPair which contains the data itself. The list is sorted in the constructor.


Field Summary
protected  int average_window_size
          The window size to calculate the moving average.
protected  double limiting_ratio
          The threshold ratio to limit the array size for mean index calculation.
protected  StarList list
          The list of stars.
protected  int minimum_window_size
          The minimum window size to calculate the moving average.
protected  int mode
          The mode.
static int MODE_BASED_ON_MAGNITUDE
          The number of mode which represents to process based on the magnitude.
static int MODE_BASED_ON_PIXEL_VALUE
          The number of mode which represents to process based on the pixel value.
protected  int policy
          The policy.
static int POLICY_LIMITING
          The number of policy which represents to estimate the limiting magnitude.
static int POLICY_UPPERLIMIT
          The number of policy which represents to estimate the upper-limit magnitude.
protected  double threshold
          The threshold of the amount of pixel values.
protected  double threshold_ratio
          The threshold ratio to determine the limiting pixel values.
 
Fields inherited from class net.aerith.misao.util.Operation
monitor_set, stopped
 
Fields inherited from class net.aerith.misao.util.OperationObservable
observer_list
 
Constructor Summary
DefaultLimitingValueEstimator(StarList list)
          Constructs a DefaultLimitingValueEstimator with the list of Star data.
 
Method Summary
 double getThreshold()
          Gets the threshold of the amount of pixel values.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 void setMinimumWindowSize(int new_window_size)
          Sets the minimum window size to calculate the moving average.
 void setMode(int mode)
          Sets the mode.
 void setMovingAverageWindowSize(int new_window_size)
          Sets the window size to calculate the moving average.
 void setPolicy(int policy)
          Sets the policy.
 void setThresholdRatio(double new_threshold_ratio)
          Sets the threshold ratio to determine the limiting pixel values.
 
Methods inherited from class net.aerith.misao.util.Operation
addMonitor, isStopped, perform, run, stop
 
Methods inherited from class net.aerith.misao.util.OperationObservable
addObserver, deleteObserver, notifyEnd, notifyFailed, notifyStart, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

list

protected StarList list
The list of stars.

average_window_size

protected int average_window_size
The window size to calculate the moving average.

minimum_window_size

protected int minimum_window_size
The minimum window size to calculate the moving average.

threshold_ratio

protected double threshold_ratio
The threshold ratio to determine the limiting pixel values.

limiting_ratio

protected double limiting_ratio
The threshold ratio to limit the array size for mean index calculation.

threshold

protected double threshold
The threshold of the amount of pixel values.

MODE_BASED_ON_MAGNITUDE

public static final int MODE_BASED_ON_MAGNITUDE
The number of mode which represents to process based on the magnitude.

MODE_BASED_ON_PIXEL_VALUE

public static final int MODE_BASED_ON_PIXEL_VALUE
The number of mode which represents to process based on the pixel value.

mode

protected int mode
The mode.

POLICY_LIMITING

public static final int POLICY_LIMITING
The number of policy which represents to estimate the limiting magnitude.

POLICY_UPPERLIMIT

public static final int POLICY_UPPERLIMIT
The number of policy which represents to estimate the upper-limit magnitude.

policy

protected int policy
The policy.
Constructor Detail

DefaultLimitingValueEstimator

public DefaultLimitingValueEstimator(StarList list)
Constructs a DefaultLimitingValueEstimator with the list of Star data.
Parameters:
list - the list of stars.
Method Detail

setMode

public void setMode(int mode)
Sets the mode.
Parameters:
mode - the mode.

setPolicy

public void setPolicy(int policy)
Sets the policy.
Parameters:
policy - the policy.

setMovingAverageWindowSize

public void setMovingAverageWindowSize(int new_window_size)
Sets the window size to calculate the moving average.
Parameters:
new_window_size - the new window size to calculate the moving average.

setMinimumWindowSize

public void setMinimumWindowSize(int new_window_size)
Sets the minimum window size to calculate the moving average.
Parameters:
new_window_size - the new minimum window size to calculate the moving average.

setThresholdRatio

public void setThresholdRatio(double new_threshold_ratio)
Sets the threshold ratio to determine the limiting pixel values.
Parameters:
new_threshold_ratio - the new threshold ratio to determine the limiting pixel values.

getThreshold

public double getThreshold()
Gets the threshold of the amount of pixel values.
Returns:
the threshold of the amount of pixel values.

ready

public boolean ready()
Returns true if the operation is ready to start.
Overrides:
ready in class Operation
Returns:
true if the operation is ready to start.

operate

public void operate()
             throws java.lang.Exception
Operates.
Overrides:
operate in class Operation
Throws:
java.lang.Exception - if an error occurs.