|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.geotools.grid.GridZoneStatistic<Z>
public class GridZoneStatistic<Z>
Diese Klasse stellt Informationen ueber ein Raster dar, das in Zonen unterteilt ist.
<Z>
festgelegt.
GridUtil.determineZoneStatistic(GridCoverage2D,GridCoverage2D)}.
Field Summary | |
---|---|
protected SortedMap<Z,Double> |
cellAvgs
Speichert den Durchschnitt der Zellwerte pro Zone. |
protected SortedMap<Z,Double> |
cellSums
Speichert die Summe der Zellwerte pro Zone. |
protected SortedMap<Z,SortedMap<Double,Integer>> |
detailCellCounts
Speichert die Anzahl der Zellen pro Zone und Wert. |
protected SortedMap<Z,Integer> |
totalCellCounts
Speichert die Anzahl der Zellen pro Zone. |
protected SortedSet<Z> |
zones
Speichert Nummern der Zonen. |
Constructor Summary | |
---|---|
GridZoneStatistic()
Erzeugt eine leere GridZoneStatistic . |
|
GridZoneStatistic(SortedMap<Z,Integer> totalCellCounts,
SortedMap<Z,SortedMap<Double,Integer>> detailCellCounts,
SortedMap<Z,Double> cellSums)
Erzeugt eine GridZoneStatistic . |
|
GridZoneStatistic(SortedMap<Z,Integer> totalCellCounts,
SortedMap<Z,SortedMap<Double,Integer>> detailCellCounts,
SortedMap<Z,Double> cellSums,
SortedMap<Z,Double> cellAvgs)
Erzeugt eine GridZoneStatistic . |
Method Summary | |
---|---|
void |
addValueToZoneStatistic(Z zone,
double cellValue)
Fuegt der Statistik einer Zone einen Wert hinzu. |
void |
clearZoneStatistic()
Leert die Statistik aller Zonen. |
void |
clearZoneStatistic(Z zone)
Leert die Statistik fuer eine Zone. |
boolean |
containsZone(Z zone)
Prueft, ob es eine bestimmte Zone gibt. |
double |
getCellAvg(Z zone)
Liefert den Durchschnitt der Zell-Werte in einer Zone |
SortedMap<Z,Double> |
getCellAvgMap()
Liefert die Durchschnittswerte der Zellen pro Zone als Map. |
double |
getCellSum(Z zone)
Liefert die Summe der Zell-Werte in einer Zone |
SortedMap<Z,Double> |
getCellSumMap()
Liefert die Summen der Zellwerte pro Zone als Map. |
int |
getDetailCellCount(Z zone,
double cellValue)
Liefert die Anzahl an Zellen eines bestimmten Werts in einer Zone. |
SortedMap<Z,SortedMap<Double,Integer>> |
getDetailCellCountMap()
Liefert die Zellenanzahl differenziert nach Zellwert fuer alle Zonen. |
SortedMap<Double,Integer> |
getDetailCellCountMap(Z zone)
Liefert die Zellenanzahl differenziert nach Zellwert fuer eine Zone. |
int |
getTotalCellCount(Z zone)
Liefert die Anzahl an Zellen in einer Zone |
SortedMap<Z,Integer> |
getTotalCellCountMap()
Liefert die Gesamt-Zellenanzahl pro Zone als Map. |
int |
getValueCount(Z zone)
Liefert Anzahl an verschiedenen Zellen fuer eine Zone. |
SortedSet<Double> |
getValues(Z zone)
Liefert die verschiedenen Werte, die in einer Zone vorkommen. |
int |
getZoneCount()
Liefert die Anzahl an Zonen. |
SortedSet<Z> |
getZones()
Liefert die Nummern der Zonen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SortedSet<Z> zones
protected SortedMap<Z,SortedMap<Double,Integer>> detailCellCounts
protected SortedMap<Z,Integer> totalCellCounts
protected SortedMap<Z,Double> cellSums
protected SortedMap<Z,Double> cellAvgs
Constructor Detail |
---|
public GridZoneStatistic()
GridZoneStatistic
. Die Werte der Zonen muessen
mittles setZoneStatistic(int,int,double
gesetzt werden.
public GridZoneStatistic(SortedMap<Z,Integer> totalCellCounts, SortedMap<Z,SortedMap<Double,Integer>> detailCellCounts, SortedMap<Z,Double> cellSums)
GridZoneStatistic
.
cellCounts
- Anzahl an Zellen pro ZonecellSums
- Summe der Zellwerte pro Zonepublic GridZoneStatistic(SortedMap<Z,Integer> totalCellCounts, SortedMap<Z,SortedMap<Double,Integer>> detailCellCounts, SortedMap<Z,Double> cellSums, SortedMap<Z,Double> cellAvgs)
GridZoneStatistic
.
cellCounts
- Anzahl an Zellen pro ZonecellSums
- Summe der Zellwerte pro ZonecellAvgs
- Durchschnittswert der Zellen pro ZoneMethod Detail |
---|
public int getZoneCount()
public SortedSet<Z> getZones()
public boolean containsZone(Z zone)
zone
- Nummer der Zonepublic void clearZoneStatistic(Z zone)
zone
- Nummer der Zonepublic void clearZoneStatistic()
public void addValueToZoneStatistic(Z zone, double cellValue)
zone
- Nummer der ZonecellValue
- Zell-Wertpublic int getTotalCellCount(Z zone)
zone
- Nummer der Zone
public int getDetailCellCount(Z zone, double cellValue)
zone
- Nummer der ZonecellValue
- Zell-Wert
public SortedMap<Z,SortedMap<Double,Integer>> getDetailCellCountMap()
public SortedMap<Double,Integer> getDetailCellCountMap(Z zone)
zone
- Nummer der Zonepublic int getValueCount(Z zone)
zone
- Nummer der Zonepublic SortedSet<Double> getValues(Z zone)
zone
- Nummer der Zonepublic SortedMap<Z,Integer> getTotalCellCountMap()
public double getCellSum(Z zone)
zone
- Nummer der Zone
public SortedMap<Z,Double> getCellSumMap()
public double getCellAvg(Z zone)
zone
- Nummer der Zone
public SortedMap<Z,Double> getCellAvgMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |