|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.core.GridStatisticsAbstract
uk.ac.leeds.ccg.andyt.grids.core.GridStatistics0
public class GridStatistics0
Used by Grid2DSquareCellAbstract instances to access statistics. This class to be instantiated for Grid2DSquareCellAbstract that keep all statistic fields up to date as the underlying data is changed. (Keeping statistic fields up to date as the underlying data is changed can be expensive.)
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.GridStatisticsAbstract |
---|
grid2DSquareCell, maxBigDecimal, maxCountBigInteger, minBigDecimal, minCountBigInteger, nonNoDataValueCountBigInteger, sumBigDecimal |
Constructor Summary | |
---|---|
GridStatistics0()
Creates a new instance of GridStatistics0 |
|
GridStatistics0(Grid2DSquareCellAbstract grid2DSquareCell)
Creates a new instance of GridStatistics0 |
Method Summary | |
---|---|
java.math.BigDecimal |
getArithmeticMeanBigDecimal(int numberOfDecimalPlaces)
For returning the arithmetic mean of all non noDataValues as a BigDecimal Throws an ArithmeticException if nonNoDataValueCountBigInteger is equal to zero. |
java.math.BigDecimal |
getMaxBigDecimal()
For returning the maximum of all non noDataValues as a BigDecimal. |
java.math.BigDecimal |
getMinBigDecimal()
For returning the minimum of all non noDataValues as a BigDecimal |
java.lang.String |
getName()
Returns the name of the this class. |
java.math.BigInteger |
getNonNoDataValueCountBigInteger()
For returning the number of cells with noDataValues as a BigInteger |
java.math.BigDecimal |
getSumBigDecimal()
For returning the sum of all non noDataValues as a BigDecimal |
void |
update()
Updates fields (statistics) by going through all values in this.grid2DSquareCellAbstract if they might not be up to date. |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.GridStatisticsAbstract |
---|
count, count, getMaxBigInteger, getMaxDouble, getMaxInt, getMaxLong, getMinBigInteger, getMinDouble, getMinInt, getMinLong, getMode, getNonNoDataValueCountInt, getNonNoDataValueCountLong, getStandardDeviationBigDecimal, getSumBigInteger, getSumDouble, getSumInt, getSumLong, init, init, toString, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridStatistics0()
public GridStatistics0(Grid2DSquareCellAbstract grid2DSquareCell)
grid2DSquareCell
- Method Detail |
---|
public void update()
update
in class GridStatisticsAbstract
public java.math.BigInteger getNonNoDataValueCountBigInteger()
getNonNoDataValueCountBigInteger
in interface GridStatisticsInterface
public java.math.BigDecimal getSumBigDecimal()
getSumBigDecimal
in interface GridStatisticsInterface
public java.math.BigDecimal getMinBigDecimal()
getMinBigDecimal
in interface GridStatisticsInterface
public java.math.BigDecimal getMaxBigDecimal()
getMaxBigDecimal
in interface GridStatisticsInterface
public java.math.BigDecimal getArithmeticMeanBigDecimal(int numberOfDecimalPlaces)
getArithmeticMeanBigDecimal
in interface GridStatisticsInterface
public java.lang.String getName()
getName
in class GridStatisticsAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |