|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract
public abstract class Grid2DSquareCellDoubleChunkAbstract
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
Grid2DSquareCellChunkAbstract.ChunkCellID |
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
chunkID, grid2DSquareCell |
Constructor Summary | |
---|---|
Grid2DSquareCellDoubleChunkAbstract()
|
Method Summary | |
---|---|
abstract void |
clearData()
For clearing the data associated with this. |
java.math.BigDecimal |
getArithmeticMeanBigDecimal(int numberOfDecimalPlaces)
For returning the Arithmetic Mean of all non noDataValues as a BigDecimal. |
double |
getArithmeticMeanDouble()
For returning the Arithmetic Mean of all non noDataValues as a double. |
abstract double |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex, as a double. |
java.math.BigDecimal |
getCellBigDecimal(int chunkCellRowIndex,
int chunkCellColIndex,
double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex, as a BigDecimal. |
Grid2DSquareCellDouble |
getGrid2DSquareCellDouble()
Returns grid2DSquareCellDouble. |
double |
getMaxDouble()
For returning the maximum of all non noDataValues as a double |
double |
getMedianDouble()
For returning the median of all non noDataValues as a double. |
double |
getMinDouble()
For returning the minimum of all non noDataValues as a double |
gnu.trove.TDoubleHashSet |
getModeTDoubleHashSet()
For returning the mode of all non noDataValues as a TDoubleHashSet. |
java.math.BigInteger |
getNonNoDataValueCountBigInteger()
Returns the number of cells with noDataValues as a BigInteger |
int |
getNonNoDataValueCountInt()
Returns the number of cells with noDataValues as an int |
double |
getStandardDeviationDouble()
For returning the standard deviation of all non noDataValues as a double |
java.math.BigDecimal |
getSumBigDecimal()
For returning the sum of all non noDataValues as a BigDecimal |
protected abstract void |
initCell(int chunkCellRowIndex,
int chunkCellColIndex,
double valueToInitialise)
Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex. |
protected void |
initCells(Grid2DSquareCellDoubleChunkRAF grid2DSquareCellDoubleChunkRAF)
Initialises the value of this with those in the randomAccessFiles. |
abstract void |
initData()
For initialising the data associated with this. |
abstract double |
setCell(int chunkCellRowIndex,
int chunkCellColIndex,
double valueToSet,
double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex and sets it to valueToSet |
protected void |
sort1(double[] x,
int off,
int len)
Sorts the specified sub-array of doubles into ascending order. |
double[] |
toArrayIncludingNoDataValues()
TODO: docs |
double[] |
toArrayNotIncludingNoDataValues()
TODO: docs |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
getChunkID, getGrid2DSquareCell, getName, inChunk, initChunkID, initGrid2DSquareCell, iterator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Grid2DSquareCellDoubleChunkAbstract()
Method Detail |
---|
public Grid2DSquareCellDouble getGrid2DSquareCellDouble()
public abstract double getCell(int chunkCellRowIndex, int chunkCellColIndex, double noDataValue)
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunknoDataValue
- the noDataValue of this.grid2DSquareCellDoublepublic java.math.BigDecimal getCellBigDecimal(int chunkCellRowIndex, int chunkCellColIndex, double noDataValue)
chunkCellRowIndex
- The row index of the cell w.r.t. the origin of this chunk.chunkCellColIndex
- The column index of the cell w.r.t. the origin of this chunk.noDataValue
- The noDataValue of this.grid2DSquareCellDouble.protected abstract void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunkvalueToInitialise
- the value with which the cell is initialisedprotected void initCells(Grid2DSquareCellDoubleChunkRAF grid2DSquareCellDoubleChunkRAF)
public abstract double setCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToSet, double noDataValue)
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunkvalueToSet
- the value the cell is to be set tonoDataValue
- the noDataValue of this.grid2DSquareCellDoublepublic abstract void clearData()
clearData
in class Grid2DSquareCellChunkAbstract
public abstract void initData()
initData
in class Grid2DSquareCellChunkAbstract
public double[] toArrayIncludingNoDataValues()
public double[] toArrayNotIncludingNoDataValues()
public java.math.BigInteger getNonNoDataValueCountBigInteger()
public int getNonNoDataValueCountInt()
public java.math.BigDecimal getSumBigDecimal()
public double getMinDouble()
public double getMaxDouble()
public java.math.BigDecimal getArithmeticMeanBigDecimal(int numberOfDecimalPlaces)
numberOfDecimalPlaces
- The number of decimal places to which the result is precise.public double getArithmeticMeanDouble()
public gnu.trove.TDoubleHashSet getModeTDoubleHashSet()
public double getMedianDouble()
protected void sort1(double[] x, int off, int len)
public double getStandardDeviationDouble()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |