org.deegree_impl.model.gp
Class GP_GridAnalysis_Impl

java.lang.Object
  extended byorg.deegree_impl.model.cv.CV_Coverage_Impl
      extended byorg.deegree_impl.model.gc.GC_GridCoverage_Impl
          extended byorg.deegree_impl.model.gp.GP_GridAnalysis_Impl
All Implemented Interfaces:
CV_Coverage, GC_GridCoverage, GP_GridAnalysis, java.rmi.Remote, java.io.Serializable

class GP_GridAnalysis_Impl
extends GC_GridCoverage_Impl
implements GP_GridAnalysis, java.io.Serializable

Performs various analysis operations on a grid coverage.

Since:
1.00
Version:
1.00

Field Summary
 
Fields inherited from class org.deegree_impl.model.gc.GC_GridCoverage_Impl
 
Fields inherited from class org.deegree_impl.model.cv.CV_Coverage_Impl
descriptor, dimensionNames, envelope, metadata, numSources, sampleDimensions
 
Constructor Summary
(package private) GP_GridAnalysis_Impl()
           
 
Method Summary
 PT_Matrix getCorrelation()
          Determine the correlation between sample dimensions in the grid.
 int[] getHistogram(int sampleDimension, double minimumEntryValue, double maximumEntryValue, int numberEntries)
          Determine the histogram of the grid values for a sample dimension.
 double getMaxValue(int sampleDimension)
          Determine the maximum grid value for a sample dimension.
 double getMeanValue(int sampleDimension)
          Determine the mean grid value for a sample dimension.
 double getMedianValue(int sampleDimension)
          Determine the median grid value for a sample dimension.
 double getMinValue(int sampleDimension)
          Determine the minimum grid value for a sample dimension.
 double getModeValue(int sampleDimension)
          Determine the mode grid value for a sample dimension.
 int getNumOverviews()
          Number of predetermined overviews for the grid.
 double getStdDev(int sampleDimension)
          Determine the standard deviation from the mean of the grid values for a sample dimension.
 
Methods inherited from class org.deegree_impl.model.gc.GC_GridCoverage_Impl
getDataBlockAsBoolean, getDataBlockAsByte, getDataBlockAsInteger, getGridCoverageSize, getGridGeometry, getGridPacking, getOptimalDataBlockSizes, getOverview, getOverviewGridGeometry, getPackedDataBlock, getPaletteInterpretation, getRaster, getRaster, getRaster, getSampleDimensionType, getScale, getValueBlockAsDouble, isDataEditable, setDataBlockAsBoolean, setDataBlockAsByte, setDataBlockAsDouble, setDataBlockAsInteger, setPackedDataBlock
 
Methods inherited from class org.deegree_impl.model.cv.CV_Coverage_Impl
evaluate, evaluateAsBoolean, evaluateAsByte, evaluateAsDouble, evaluateAsInteger, getCoordinateSystem, getDimensionNames, getEnvelope, getMetadataNames, getMetadataValue, getNumSampleDimensions, getNumSources, getSampleDimension, getSource, getTiles, setSampleDimension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.gc.GC_GridCoverage
getDataBlockAsBoolean, getDataBlockAsByte, getDataBlockAsInteger, getGridGeometry, getGridPacking, getOptimalDataBlockSizes, getOverview, getOverviewGridGeometry, getPackedDataBlock, getValueBlockAsDouble, isDataEditable, setDataBlockAsBoolean, setDataBlockAsByte, setDataBlockAsDouble, setDataBlockAsInteger, setPackedDataBlock
 
Methods inherited from interface org.opengis.cv.CV_Coverage
evaluate, evaluateAsBoolean, evaluateAsByte, evaluateAsDouble, evaluateAsInteger, getCoordinateSystem, getDimensionNames, getEnvelope, getMetadataNames, getMetadataValue, getNumSampleDimensions, getNumSources, getSampleDimension, getSource
 

Constructor Detail

GP_GridAnalysis_Impl

GP_GridAnalysis_Impl()
               throws java.rmi.RemoteException
Method Detail

getStdDev

public double getStdDev(int sampleDimension)
                 throws java.rmi.RemoteException
Determine the standard deviation from the mean of the grid values for a sample dimension.

Specified by:
getStdDev in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
he standard deviation from the mean of the grid values for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getNumOverviews

public int getNumOverviews()
                    throws java.rmi.RemoteException
Number of predetermined overviews for the grid.

Specified by:
getNumOverviews in interface GC_GridCoverage
Overrides:
getNumOverviews in class GC_GridCoverage_Impl
Returns:
the number of predetermined overviews for the grid.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getModeValue

public double getModeValue(int sampleDimension)
                    throws java.rmi.RemoteException
Determine the mode grid value for a sample dimension.

Specified by:
getModeValue in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
the mode grid value for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getMinValue

public double getMinValue(int sampleDimension)
                   throws java.rmi.RemoteException
Determine the minimum grid value for a sample dimension.

Specified by:
getMinValue in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
the minimum grid value for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getMedianValue

public double getMedianValue(int sampleDimension)
                      throws java.rmi.RemoteException
Determine the median grid value for a sample dimension.

Specified by:
getMedianValue in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
the median grid value for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getMeanValue

public double getMeanValue(int sampleDimension)
                    throws java.rmi.RemoteException
Determine the mean grid value for a sample dimension.

Specified by:
getMeanValue in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
the mean grid value for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getMaxValue

public double getMaxValue(int sampleDimension)
                   throws java.rmi.RemoteException
Determine the maximum grid value for a sample dimension.

Specified by:
getMaxValue in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension.
Returns:
the maximum grid value for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getHistogram

public int[] getHistogram(int sampleDimension,
                          double minimumEntryValue,
                          double maximumEntryValue,
                          int numberEntries)
                   throws java.rmi.RemoteException
Determine the histogram of the grid values for a sample dimension.

Specified by:
getHistogram in interface GP_GridAnalysis
Parameters:
sampleDimension - Index of sample dimension to be histogrammed.
minimumEntryValue - Minimum value stored in the first histogram entry.
maximumEntryValue - Maximum value stored in the last histogram entry.
numberEntries - Number of entries in the histogram.
Returns:
the histogram of the grid values for a sample dimension.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getCorrelation

public PT_Matrix getCorrelation()
                         throws java.rmi.RemoteException
Determine the correlation between sample dimensions in the grid.

Specified by:
getCorrelation in interface GP_GridAnalysis
Returns:
the correlation between sample dimensions in the grid.
Throws:
java.rmi.RemoteException - if a remote method call failed.