org.deegree_impl.model.cv
Class Histogram_Impl

java.lang.Object
  extended byorg.deegree_impl.model.cv.Histogram_Impl
All Implemented Interfaces:
Histogram

public class Histogram_Impl
extends java.lang.Object
implements Histogram

Histogram records image statistics (mean and median value, etc.) and lists the counts and percentages of pixels in each of several brightness “bins.” defines the access to the fields of a grids histogram

-----------------------------------------------------------------------

Version:
$Revision: 1.1 $ $Date: 2003/01/27 11:31:14 $

Author:
Andreas Poth

Field Summary
private  Count[] counts
           
private  double max
           
private  double mean
           
private  double median
           
private  double min
           
private  double stDev
           
private  int totalCount
           
 
Constructor Summary
(package private) Histogram_Impl(Count[] counts, int totalCount, double min, double max, double mean, double stDev, double median)
           
 
Method Summary
 Count[] getCounts()
          returns the counts for each histogram class
 double getMax()
          returns the maximum value of grids values
 double getMean()
          returns the mean value of grids values
 double getMedian()
          returns the median value of grids values
 double getMin()
          returns the minimum value of grids values
 double getStDev()
          returns the standard deviation of the grids values
 int getTotalCount()
          returns the number of grid values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counts

private Count[] counts

max

private double max

min

private double min

mean

private double mean

median

private double median

stDev

private double stDev

totalCount

private int totalCount
Constructor Detail

Histogram_Impl

Histogram_Impl(Count[] counts,
               int totalCount,
               double min,
               double max,
               double mean,
               double stDev,
               double median)
Method Detail

getCounts

public Count[] getCounts()
returns the counts for each histogram class

Specified by:
getCounts in interface Histogram

getMax

public double getMax()
returns the maximum value of grids values

Specified by:
getMax in interface Histogram

getMean

public double getMean()
returns the mean value of grids values

Specified by:
getMean in interface Histogram

getMedian

public double getMedian()
returns the median value of grids values

Specified by:
getMedian in interface Histogram

getMin

public double getMin()
returns the minimum value of grids values

Specified by:
getMin in interface Histogram

getStDev

public double getStDev()
returns the standard deviation of the grids values

Specified by:
getStDev in interface Histogram

getTotalCount

public int getTotalCount()
returns the number of grid values

Specified by:
getTotalCount in interface Histogram