public class PhotStats
extends java.lang.Object
Constructor and Description |
---|
PhotStats(HiProduct filter,
int binning)
Create a new instance for a combo
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asString(HiProduct filter,
int binning)
Get the key string for an instance
|
boolean |
equals(java.lang.Object obj) |
double |
getAvg()
Get the mean DN
|
int |
getBin()
Get the bin mode
|
java.lang.String |
getFilterName()
Get the filter name (RED, IR, BG)
|
int |
getMax()
Get the maximum DN
|
int |
getMin()
Get the minimum DN
|
double |
getSnr()
Get the signal-to-noise ratio
|
double |
getStd()
Get the standard deviation in DN
|
java.lang.String |
getTdiModes()
Get a string representation of the TDI modes used
|
boolean |
getTdiStage(int index)
Get the setting for a TDI stage
|
boolean[] |
getTdiStages()
Return an array representing which TDI modes were used
|
int |
hashCode() |
void |
setAvg(double avg)
Set the mean
|
void |
setMax(int max)
Set the maximum
|
void |
setMin(int min)
Set the minimum
|
void |
setSnr(double snr)
Set the SNR
|
void |
setStd(double std)
Set the standard deviation
|
void |
setTdiStage(boolean on,
int index)
Set whether or not a TDI stage was commanded
|
java.lang.String |
toString() |
public PhotStats(HiProduct filter, int binning)
filter
- The filter ID (RED, IR, BG)binning
- The bin modepublic java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String asString(HiProduct filter, int binning)
filter
- The filter ID (RED, IR, BG)binning
- The bin modepublic void setTdiStage(boolean on, int index)
on
- true if commandedindex
- TDI stage indexpublic boolean getTdiStage(int index)
index
- TDI stagepublic boolean[] getTdiStages()
public java.lang.String getTdiModes()
public java.lang.String getFilterName()
public int getBin()
public double getAvg()
public double getStd()
public double getSnr()
public int getMin()
public int getMax()
public void setAvg(double avg)
avg
- DNpublic void setStd(double std)
std
- DNpublic void setSnr(double snr)
snr
- signal-to-noise ratiopublic void setMin(int min)
min
- DNpublic void setMax(int max)
max
- DNpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona