it.geosolutions.jaiext.stats
Class StatsFactory

java.lang.Object
  extended by it.geosolutions.jaiext.stats.StatsFactory

public class StatsFactory
extends Object

This factory class is used for creating all the possible Statistics subclasses. All the createXXXObject() methods give the possibility to create the chosen statistic object without selecting any index, but only setting the requested parameters if necessary. The last 2 methods could be used for creating the statistics objects by selecting their Id, defined inside the Statistics.StatsType, and passing their input parameters if needed.


Method Summary
static Statistics createComplexStatisticsObjectFromInt(int value, double minBound, double maxBound, int numBins)
          This method returns the complex statistic object associated to the Id returned
static Statistics createDevStdObject()
          This method returns a statistic object for calculating the Standard Deviation of an Image
static Statistics createExtremaObject()
          This method returns a statistic object for calculating the Extrema of all the pixels of an Image
static Statistics createHistogramObject(int numBins, double minBound, double maxBound)
          This method returns a statistic object for calculating the Histogram of an Image
static Statistics createMaxObject()
          This method returns a statistic object for calculating the Maximum of all the pixels of an Image
static Statistics createMeanObject()
          This method returns a statistic object for calculating the Mean of an Image
static Statistics createMedianObject(double minBound, double maxBound)
          This method returns a statistic object for calculating the Median of an Image
static Statistics createMinObject()
          This method returns a statistic object for calculating the Minimum of all the pixels of an Image
static Statistics createModeObject(int numBins, double minBound, double maxBound)
          This method returns a statistic object for calculating the Mode of an Image
static Statistics createSimpleStatisticsObjectFromInt(int value)
          This method returns the simple statistic object associated to the Id returned
static Statistics createSumObject()
          This method returns a statistic object for calculating the Sum of all the pixels of an Image
static Statistics createVarianceObject()
          This method returns a statistic object for calculating the Variance of an Image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMeanObject

public static Statistics createMeanObject()
This method returns a statistic object for calculating the Mean of an Image


createSumObject

public static Statistics createSumObject()
This method returns a statistic object for calculating the Sum of all the pixels of an Image


createMaxObject

public static Statistics createMaxObject()
This method returns a statistic object for calculating the Maximum of all the pixels of an Image


createMinObject

public static Statistics createMinObject()
This method returns a statistic object for calculating the Minimum of all the pixels of an Image


createExtremaObject

public static Statistics createExtremaObject()
This method returns a statistic object for calculating the Extrema of all the pixels of an Image


createVarianceObject

public static Statistics createVarianceObject()
This method returns a statistic object for calculating the Variance of an Image


createDevStdObject

public static Statistics createDevStdObject()
This method returns a statistic object for calculating the Standard Deviation of an Image


createHistogramObject

public static Statistics createHistogramObject(int numBins,
                                               double minBound,
                                               double maxBound)
This method returns a statistic object for calculating the Histogram of an Image


createModeObject

public static Statistics createModeObject(int numBins,
                                          double minBound,
                                          double maxBound)
This method returns a statistic object for calculating the Mode of an Image


createMedianObject

public static Statistics createMedianObject(double minBound,
                                            double maxBound)
This method returns a statistic object for calculating the Median of an Image


createSimpleStatisticsObjectFromInt

public static Statistics createSimpleStatisticsObjectFromInt(int value)
This method returns the simple statistic object associated to the Id returned


createComplexStatisticsObjectFromInt

public static Statistics createComplexStatisticsObjectFromInt(int value,
                                                              double minBound,
                                                              double maxBound,
                                                              int numBins)
This method returns the complex statistic object associated to the Id returned



Copyright © 2006–2015 GeoSolutions. All rights reserved.