|
||||||||||
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.AbstractGrid2DSquareCellChunk uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellDoubleChunk uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkMap
public class Grid2DSquareCellDoubleChunkMap
AbstractGrid2DSquareCellDoubleChunk extension that stores cell values in a TDoubleObjectHashMap.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
AbstractGrid2DSquareCellChunk.ChunkCellID |
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
_ChunkID, _Grid2DSquareCell, isSwapUpToDate |
Constructor Summary | |
---|---|
|
Grid2DSquareCellDoubleChunkMap()
Default constructor. |
protected |
Grid2DSquareCellDoubleChunkMap(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellDoubleChunk,
AbstractGrid2DSquareCell.ChunkID _ChunkID,
double defaultValue)
Creates a new Grid2DSquareCellDoubleChunkMap |
protected |
Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
Creates a new Grid2DSquareCellDoubleChunkMap |
protected |
Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble,
AbstractGrid2DSquareCell.ChunkID _ChunkID,
double defaultValue)
Creates a new Grid2DSquareCellDoubleChunkMap |
Method Summary | |
---|---|
protected void |
clearData()
Clears the data associated with this. |
protected double |
getArithmeticMeanDouble()
Returns the Arithmetic Mean of all non _NoDataValues as a double. |
protected double |
getCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID,
double _NoDataValue)
Returns the value of cell with CellID given by chunkCellID. |
protected double |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
double _NoDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex. |
protected gnu.trove.TDoubleObjectHashMap |
getData()
Returns this.data TODO: This could be made public if a copy is returned! |
protected java.math.BigInteger |
getDiversityBigInteger()
For returning the number of different values. |
protected double |
getMaxDouble()
Returns the maximum of all non _NoDataValues as a double |
protected double |
getMedianDouble()
For returning the median of all non _NoDataValues as a double |
protected double |
getMinDouble()
Returns the minimum of all non _NoDataValues as a double. |
protected gnu.trove.TDoubleHashSet |
getModeTDoubleHashSet()
For returning the mode of all non _NoDataValues as a TDoubleHashSet |
protected java.math.BigInteger |
getNonNoDataValueCountBigInteger()
Returns the number of cells with non _NoDataValues as a BigInteger. |
protected double |
getStandardDeviationDouble()
For returning the standard deviation of all non _NoDataValues as a double |
protected java.math.BigDecimal |
getSumBigDecimal()
Returns the sum of all non _NoDataValues as a BigDecimal. |
protected void |
initCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID,
double valueToInitialise)
Initialises the value of the chunk referred to by chunkCellID to valueToInitialise. |
protected 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 |
initData()
Initialises the data associated with this. |
protected AbstractIterator |
iterator()
Returns a Grid2DSquareCellDoubleChunkMapIterator for iterating over the cells in this. |
protected double |
setCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID,
double valueToSet,
double _NoDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex and sets it to valueToSet |
protected double |
setCell(int chunkCellRowIndex,
int chunkCellColIndex,
double valueToSet,
double _NoDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex and sets it to valueToSet |
protected double[] |
toArrayIncludingNoDataValues()
Returns values in row major order as a double[]. |
protected double[] |
toArrayNotIncludingNoDataValues()
Returns non _NoDataValue in row major order as a double[]. |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
getChunkID, getChunkID, getDescription, getGrid2DSquareCell, getGrid2DSquareCell, getIsSwapUpToDate, getIsSwapUpToDate, getName, getName, inChunk, inChunk, initChunkID, initGrid2DSquareCell, iterator, setIsSwapUpToDate, setIsSwapUpToDate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid2DSquareCellDoubleChunkMap()
protected Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble, AbstractGrid2DSquareCell.ChunkID _ChunkID)
grid2DSquareCellDouble
- _ChunkID
- Default:
default value to grid2DSquareCellDouble.getNoDataValue()protected Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble, AbstractGrid2DSquareCell.ChunkID _ChunkID, double defaultValue)
grid2DSquareCellDouble
- _ChunkID
- defaultValue
- protected Grid2DSquareCellDoubleChunkMap(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellDoubleChunk, AbstractGrid2DSquareCell.ChunkID _ChunkID, double defaultValue)
grid2DSquareCellDoubleChunk
- _ChunkID
- Default:
default value to grid2DSquareCellDouble.getNoDataValue()
TODO:
Optimise for different types.Method Detail |
---|
protected void initData()
initData
in class AbstractGrid2DSquareCellDoubleChunk
protected gnu.trove.TDoubleObjectHashMap getData()
protected void clearData()
clearData
in class AbstractGrid2DSquareCellDoubleChunk
protected double[] toArrayIncludingNoDataValues()
toArrayIncludingNoDataValues
in class AbstractGrid2DSquareCellDoubleChunk
protected double[] toArrayNotIncludingNoDataValues()
toArrayNotIncludingNoDataValues
in class AbstractGrid2DSquareCellDoubleChunk
protected double getCell(int chunkCellRowIndex, int chunkCellColIndex, double _NoDataValue)
getCell
in class AbstractGrid2DSquareCellDoubleChunk
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 chunk_NoDataValue
- the _NoDataValue of this.grid2DSquareCellDoubleprotected double getCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID, double _NoDataValue)
chunkCellID
- The chunk CellID of cell thats value is returned._NoDataValue
- The _NoDataValue of this.grid2DSquareCellDouble.protected void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
initCell
in class AbstractGrid2DSquareCellDoubleChunk
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 initCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID, double valueToInitialise)
chunkCellID
- the AbstractGrid2DSquareCellDoubleChunk.ChunkCellID of
the cell to be initialisedvalueToInitialise
- the value with which the cell is initialisedprotected double setCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToSet, double _NoDataValue)
setCell
in class AbstractGrid2DSquareCellDoubleChunk
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 to_NoDataValue
- the _NoDataValue of this.grid2DSquareCellDoubleprotected double setCell(AbstractGrid2DSquareCellChunk.ChunkCellID chunkCellID, double valueToSet, double _NoDataValue)
chunkCellID
- the AbstractGrid2DSquareCellDoubleChunk.ChunkCellID of
the cell to be initialisedvalueToSet
- the value the cell is to be set to_NoDataValue
- the _NoDataValue of this.grid2DSquareCellDoubleprotected java.math.BigInteger getNonNoDataValueCountBigInteger()
getNonNoDataValueCountBigInteger
in class AbstractGrid2DSquareCellDoubleChunk
protected java.math.BigDecimal getSumBigDecimal()
getSumBigDecimal
in class AbstractGrid2DSquareCellDoubleChunk
protected double getMinDouble()
getMinDouble
in class AbstractGrid2DSquareCellDoubleChunk
protected double getMaxDouble()
getMaxDouble
in class AbstractGrid2DSquareCellDoubleChunk
protected double getArithmeticMeanDouble()
getArithmeticMeanDouble
in class AbstractGrid2DSquareCellDoubleChunk
protected gnu.trove.TDoubleHashSet getModeTDoubleHashSet()
getModeTDoubleHashSet
in class AbstractGrid2DSquareCellDoubleChunk
protected double getMedianDouble()
getMedianDouble
in class AbstractGrid2DSquareCellDoubleChunk
protected double getStandardDeviationDouble()
getStandardDeviationDouble
in class AbstractGrid2DSquareCellDoubleChunk
protected java.math.BigInteger getDiversityBigInteger()
protected AbstractIterator iterator()
iterator
in class AbstractGrid2DSquareCellChunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |