|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.heatmap.HeatmapStatistic
public class HeatmapStatistic
Generates some statistics for a heatmap.
| Field Summary | |
|---|---|
static String |
COUNT_NONZEROES
the non-zeroes count. |
static String |
COUNT_ZEROES
the zeroes count. |
static String |
HEIGHT
the height. |
protected Heatmap |
m_Heatmap
the heatmap to create the statistics for. |
protected Hashtable<String,Double> |
m_Statistics
the statistics. |
static String |
MAXIMUM
the maximum value. |
static String |
MINIMUM
the minimum value. |
static String |
WIDTH
the width. |
| Constructor Summary | |
|---|---|
HeatmapStatistic()
Initializes the statistics. |
|
HeatmapStatistic(Heatmap map)
Initializes the statistics with the specified heatmap. |
|
| Method Summary | |
|---|---|
protected void |
calculate()
Generates the statistics. |
Heatmap |
getHeatmap()
Returns the underlying heatmap. |
double |
getStatistic(String name)
Returns the statistical value for the given statistic name. |
String |
getStatisticDescription()
Returns a description for this statistic. |
void |
setHeatmap(Heatmap value)
Sets the heatmap to generate the statistics for. |
Enumeration<String> |
statisticNames()
Returns all the names of the available statistical values. |
String |
toString()
Returns a string representation of the statistic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String WIDTH
public static String HEIGHT
public static String MINIMUM
public static String MAXIMUM
public static String COUNT_ZEROES
public static String COUNT_NONZEROES
protected Hashtable<String,Double> m_Statistics
protected Heatmap m_Heatmap
| Constructor Detail |
|---|
public HeatmapStatistic()
public HeatmapStatistic(Heatmap map)
map - the heatmap to generate the stats for| Method Detail |
|---|
public void setHeatmap(Heatmap value)
value - the heatmap to usepublic Heatmap getHeatmap()
protected void calculate()
public String getStatisticDescription()
getStatisticDescription in interface InformativeStatisticpublic Enumeration<String> statisticNames()
statisticNames in interface InformativeStatisticpublic double getStatistic(String name)
getStatistic in interface InformativeStatisticname - the name of the statistical value
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||