|
||||||||||
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.Grid2DSquareCellIntChunkAbstract
public abstract class Grid2DSquareCellIntChunkAbstract
TODO: docs
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 | |
---|---|
Grid2DSquareCellIntChunkAbstract()
|
Method Summary | |
---|---|
abstract void |
clearData()
For clearing the data associated with this. |
double |
getArithmeticMeanDouble()
For returning the Arithmetic Mean of all non noDataValues as a double. |
abstract int |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell col chunkCellColIndex as a int. |
double |
getCellDouble(int chunkCellRowIndex,
int chunkCellColIndex,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell col chunkCellColIndex as a double. |
Grid2DSquareCellInt |
getGrid2DSquareCellInt()
Returns grid2DSquareCellInt. |
int |
getMaxInt()
For returning the maximum of all non noDataValues as a double |
double |
getMedianDouble()
For returning the median of all non noDataValues as a double. |
int |
getMinInt()
For returning the minimum of all non noDataValues as a int |
gnu.trove.TIntHashSet |
getModeTIntHashSet()
For returning the mode of all non noDataValues as a TDoubleHashSet. |
java.math.BigInteger |
getNonNoDataValueCountBigInteger()
For returning 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,
int valueToInitialise)
Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex. |
protected void |
initCells(Grid2DSquareCellIntChunkRAF grid2DSquareCellIntChunkRAF)
Initialises the value of this with those in the randomAccessFiles. |
abstract void |
initData()
For initialising the data associated with this. |
abstract int |
setCell(int chunkCellRowIndex,
int chunkCellColIndex,
int valueToSet,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex and sets it to valueToSet |
protected void |
sort1(int[] x,
int off,
int len)
Sorts the specified sub-array of doubles into ascending order. |
int[] |
toArrayIncludingNoDataValues()
TODO: docs |
int[] |
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 Grid2DSquareCellIntChunkAbstract()
Method Detail |
---|
public Grid2DSquareCellInt getGrid2DSquareCellInt()
public abstract int getCell(int chunkCellRowIndex, int chunkCellColIndex, int 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.grid2DSquareCellIntpublic double getCellDouble(int chunkCellRowIndex, int chunkCellColIndex, int 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.grid2DSquareCellInt
TODO:
Ensure the int can be represented exactly as a double. If not throw Exception of some kind.protected abstract void initCell(int chunkCellRowIndex, int chunkCellColIndex, int 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(Grid2DSquareCellIntChunkRAF grid2DSquareCellIntChunkRAF)
public abstract int setCell(int chunkCellRowIndex, int chunkCellColIndex, int valueToSet, int 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 int[] toArrayIncludingNoDataValues()
public int[] toArrayNotIncludingNoDataValues()
public java.math.BigInteger getNonNoDataValueCountBigInteger()
public int getNonNoDataValueCountInt()
public java.math.BigDecimal getSumBigDecimal()
public int getMinInt()
public int getMaxInt()
public double getArithmeticMeanDouble()
public gnu.trove.TIntHashSet getModeTIntHashSet()
public double getMedianDouble()
protected void sort1(int[] x, int off, int len)
public double getStandardDeviationDouble()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |