it.geosolutions.jaiext.stats
Class VarianceStd

java.lang.Object
  extended by it.geosolutions.jaiext.stats.Statistics
      extended by it.geosolutions.jaiext.stats.VarianceStd

public class VarianceStd
extends Statistics

This subclass of Statistics is used for calculating the variance or the standard deviation of an image. These 2 operations are almost the same, the difference is only at the final step when the second is returned by calculating the square root of the first parameter.


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

addSample

public void addSample(double sample)
Description copied from class: Statistics
This method adds a Double value to the statistics and updates them

Specified by:
addSample in class Statistics
Parameters:
sample - sample value used for updating statistics

accumulateStats

protected void accumulateStats(Statistics stats)
Description copied from class: Statistics
This method is used for accumulating the statistics from another Statistics object

Specified by:
accumulateStats in class Statistics
Parameters:
stats - Statistics object to add to the current object

getResult

public Object getResult()
Description copied from class: Statistics
This method returns the statistic result

Specified by:
getResult in class Statistics

clearStats

protected void clearStats()
Description copied from class: Statistics
This method is used for clearing the results

Specified by:
clearStats in class Statistics

getNumSamples

public Long getNumSamples()
Description copied from class: Statistics
This method returns the number of samples calculated

Specified by:
getNumSamples in class Statistics


Copyright © 2006–2015 GeoSolutions. All rights reserved.