|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.geosolutions.jaiext.stats.Statistics
it.geosolutions.jaiext.stats.Median
public class Median
This subclass of Statistics
is used for calculating the median of an image. This operation is performed by saving alist of all the pixel
values. When the result is requested, the list is sorted and then the middle value is taken. If the list size is even, then the mean of the 2
middle values.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class it.geosolutions.jaiext.stats.Statistics |
---|
Statistics.StatsType |
Field Summary |
---|
Fields inherited from class it.geosolutions.jaiext.stats.Statistics |
---|
samples, STATS_PROPERTY, type |
Method Summary | |
---|---|
protected void |
accumulateStats(Statistics stats)
This method is used for accumulating the statistics from another Statistics object |
void |
addSample(double sample)
This method adds a Double value to the statistics and updates them |
protected void |
clearStats()
This method is used for clearing the results |
Long |
getNumSamples()
This method returns the number of samples calculated |
Object |
getResult()
This method returns the statistic result |
Methods inherited from class it.geosolutions.jaiext.stats.Statistics |
---|
checkSameStats, getStatsType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addSample(double sample)
Statistics
addSample
in class Statistics
sample
- sample value used for updating statisticsprotected void accumulateStats(Statistics stats)
Statistics
accumulateStats
in class Statistics
stats
- Statistics object to add to the current objectpublic Object getResult()
Statistics
getResult
in class Statistics
public Long getNumSamples()
Statistics
getNumSamples
in class Statistics
protected void clearStats()
Statistics
clearStats
in class Statistics
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |