HiRISE

HiRISE.HiReport.model
Class RangeStats

java.lang.Object
  extended by HiRISE.HiReport.model.RangeStats

public class RangeStats
extends Object

Stores a stats about images per-binning and overall


Constructor Summary
RangeStats()
           
 
Method Summary
 double getAverage()
          Get the average of the average DN
 double getAverageSurfaceSNR()
          Get the average SRF.
 int getChannelCount()
          Get the number of channels (determined by calls to update)
 int[] getChannelCounts()
          Get the channel counts as a function of binning (zeroeth element = bin 1)
 double getCompression()
          Get the average compression ratio.
 int getHighestDN()
          Get the highest DN
 int getLowestDN()
          Get the lowest DN
 int[] getMaxima()
          Get the max DN values as a function of binning (zeroeth element = bin 1)
 int[] getMinima()
          Get the min DN values as a function of binning (zeroeth element = bin 1)
 double getSignalToNoiseRatio()
          Get the average SNR.
 int[] getSnrChannelCounts()
          Get the SNR channel counts as a function of binning (zeroeth element = bin 1)
 double[] getSummedAverages()
          Get the summed averages array as a function of binning (zeroeth element = bin 1)
 double[] getSummedFCR()
          Get the summed FCR array as a function of binning (zeroeth element = bin 1)
 double[] getSummedSNR()
          Get the summed SNR array as a function of binning (zeroeth element = bin 1)
 double[] getSummedSTD()
          Get the summed STD array as a function of binning (zeroeth element = bin 1)
 double[] getSurfaceSNR()
          Get the summed SNR array as a function of binning (zeroeth element = bin 1)
 int[][] getTdiCounts()
          Get the count for each TDI stage in each bin mode
 void update(EdrInfo edr)
          Update the values from an EdrInfo instance
 void update(int tdi, int bin, int min, int max, double avg, double snr, double fcr, double std)
          Update aggregate stats based on values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeStats

public RangeStats()
Method Detail

update

public void update(EdrInfo edr)
Update the values from an EdrInfo instance

Parameters:
edr - data object

update

public void update(int tdi,
                   int bin,
                   int min,
                   int max,
                   double avg,
                   double snr,
                   double fcr,
                   double std)
Update aggregate stats based on values. This should be called once per channel.

Parameters:
tdi - TDI value
bin - bin-mode value
min - lowest DN
max - highest DN
avg - average DN
snr - signal-to-noise ratio
fcr - FELICS compression ratio
std - standard deviation in std

getChannelCounts

public int[] getChannelCounts()
Get the channel counts as a function of binning (zeroeth element = bin 1)

Returns:
count array

getTdiCounts

public int[][] getTdiCounts()
Get the count for each TDI stage in each bin mode

Returns:
2D array by binning and TDI stage

getSnrChannelCounts

public int[] getSnrChannelCounts()
Get the SNR channel counts as a function of binning (zeroeth element = bin 1)

Returns:
count array

getMinima

public int[] getMinima()
Get the min DN values as a function of binning (zeroeth element = bin 1)

Returns:
minima array

getMaxima

public int[] getMaxima()
Get the max DN values as a function of binning (zeroeth element = bin 1)

Returns:
maxima array

getSummedAverages

public double[] getSummedAverages()
Get the summed averages array as a function of binning (zeroeth element = bin 1)

Returns:
averages array

getSummedSTD

public double[] getSummedSTD()
Get the summed STD array as a function of binning (zeroeth element = bin 1)

Returns:
averages array

getSummedSNR

public double[] getSummedSNR()
Get the summed SNR array as a function of binning (zeroeth element = bin 1)

Returns:
SNR array

getSurfaceSNR

public double[] getSurfaceSNR()
Get the summed SNR array as a function of binning (zeroeth element = bin 1)

Returns:
SNR array

getSummedFCR

public double[] getSummedFCR()
Get the summed FCR array as a function of binning (zeroeth element = bin 1)

Returns:
FCR array

getChannelCount

public int getChannelCount()
Get the number of channels (determined by calls to update)

Returns:
number of channels

getLowestDN

public int getLowestDN()
Get the lowest DN

Returns:
lowest DN

getHighestDN

public int getHighestDN()
Get the highest DN

Returns:
highest DN

getAverage

public double getAverage()
Get the average of the average DN

Returns:
average DN

getCompression

public double getCompression()
Get the average compression ratio.

Returns:
average compression ratio

getSignalToNoiseRatio

public double getSignalToNoiseRatio()
Get the average SNR.

Returns:
average SNR

getAverageSurfaceSNR

public double getAverageSurfaceSNR()
Get the average SRF.

Returns:
average SRF

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona