|
||||||||||
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 uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkMap
public class Grid2DSquareCellDoubleChunkMap
The maximum size of this Grid2DSquareCellDoubleChunkAbstract is 64 cells.
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 | |
---|---|
protected |
Grid2DSquareCellDoubleChunkMap()
Default constructor. |
protected |
Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk,
Grid2DSquareCellAbstract.ChunkID chunkID,
double defaultValue)
Creates a new Grid2DSquareCellDoubleChunkMap |
protected |
Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble,
Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellDoubleChunkMap |
protected |
Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble,
Grid2DSquareCellAbstract.ChunkID chunkID,
double defaultValue)
Creates a new Grid2DSquareCellDoubleChunkMap |
Method Summary | |
---|---|
void |
clearData()
Clears the data associated with this. |
double |
getArithmeticMeanDouble()
Returns the Arithmetic Mean of all non noDataValues as a double. |
double |
getCell(Grid2DSquareCellChunkAbstract.ChunkCellID chunkCellID,
double noDataValue)
Returns the value of cell with CellID given by chunkCellID |
double |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex. |
gnu.trove.TDoubleObjectHashMap |
getData()
Returns this.data. |
java.math.BigInteger |
getDiversityBigInteger()
For returning the number of different values. |
double |
getMaxDouble()
Returns the maximum of all non noDataValues as a double |
double |
getMedianDouble()
For returning the median of all non noDataValues as a double |
double |
getMinDouble()
Returns 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 non noDataValues as a BigInteger. |
double |
getStandardDeviationDouble()
For returning the standard deviation of all non noDataValues as a double |
java.math.BigDecimal |
getSumBigDecimal()
Returns the sum of all non noDataValues as a BigDecimal. |
protected void |
initCell(Grid2DSquareCellChunkAbstract.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. |
void |
initData()
Initialises the data associated with this. |
AbstractIterator |
iterator()
Returns a Grid2DSquareCellDoubleChunkMapIterator for iterating over the cells in this. |
double |
setCell(Grid2DSquareCellChunkAbstract.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 |
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 |
double[] |
toArrayIncludingNoDataValues()
Returns values in row major order as a double[]. |
double[] |
toArrayNotIncludingNoDataValues()
Returns non noDataValue in row major order as a double[]. |
java.lang.String |
toString()
Returns a description of this. |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract |
---|
getArithmeticMeanBigDecimal, getCellBigDecimal, getGrid2DSquareCellDouble, getNonNoDataValueCountInt, initCells, sort1 |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract |
---|
getChunkID, getGrid2DSquareCell, getName, inChunk, initChunkID, initGrid2DSquareCell |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Grid2DSquareCellDoubleChunkMap()
protected Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble, Grid2DSquareCellAbstract.ChunkID chunkID)
grid2DSquareCellDouble
- chunkID
- Default:
default value to grid2DSquareCellDouble.getNoDataValue()protected Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDouble grid2DSquareCellDouble, Grid2DSquareCellAbstract.ChunkID chunkID, double defaultValue)
grid2DSquareCellDouble
- chunkID
- defaultValue
- protected Grid2DSquareCellDoubleChunkMap(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk, Grid2DSquareCellAbstract.ChunkID chunkID, double defaultValue)
grid2DSquareCellDoubleChunk
- chunkID
- Default:
default value to grid2DSquareCellDouble.getNoDataValue()
TODO:
Optimise for different types.Method Detail |
---|
public java.lang.String toString()
toString
in class Grid2DSquareCellChunkAbstract
public void initData()
initData
in class Grid2DSquareCellDoubleChunkAbstract
public gnu.trove.TDoubleObjectHashMap getData()
public void clearData()
clearData
in class Grid2DSquareCellDoubleChunkAbstract
public double[] toArrayIncludingNoDataValues()
toArrayIncludingNoDataValues
in class Grid2DSquareCellDoubleChunkAbstract
public double[] toArrayNotIncludingNoDataValues()
toArrayNotIncludingNoDataValues
in class Grid2DSquareCellDoubleChunkAbstract
public double getCell(int chunkCellRowIndex, int chunkCellColIndex, double noDataValue)
getCell
in class Grid2DSquareCellDoubleChunkAbstract
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 double getCell(Grid2DSquareCellChunkAbstract.ChunkCellID chunkCellID, double noDataValue)
chunkCellID
- the chunk CellID of cell thats value is to be returnednoDataValue
- the noDataValue of this.grid2DSquareCellDoubleprotected void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
initCell
in class Grid2DSquareCellDoubleChunkAbstract
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(Grid2DSquareCellChunkAbstract.ChunkCellID chunkCellID, double valueToInitialise)
chunkCellID
- the Grid2DSquareCellDoubleChunkAbstract.ChunkCellID of
the cell to be initialisedvalueToInitialise
- the value with which the cell is initialisedpublic double setCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToSet, double noDataValue)
setCell
in class Grid2DSquareCellDoubleChunkAbstract
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 double setCell(Grid2DSquareCellChunkAbstract.ChunkCellID chunkCellID, double valueToSet, double noDataValue)
chunkCellID
- the Grid2DSquareCellDoubleChunkAbstract.ChunkCellID of
the cell to be initialisedvalueToSet
- the value the cell is to be set tonoDataValue
- the noDataValue of this.grid2DSquareCellDoublepublic java.math.BigInteger getNonNoDataValueCountBigInteger()
getNonNoDataValueCountBigInteger
in class Grid2DSquareCellDoubleChunkAbstract
public java.math.BigDecimal getSumBigDecimal()
getSumBigDecimal
in class Grid2DSquareCellDoubleChunkAbstract
public double getMinDouble()
getMinDouble
in class Grid2DSquareCellDoubleChunkAbstract
public double getMaxDouble()
getMaxDouble
in class Grid2DSquareCellDoubleChunkAbstract
public double getArithmeticMeanDouble()
getArithmeticMeanDouble
in class Grid2DSquareCellDoubleChunkAbstract
public gnu.trove.TDoubleHashSet getModeTDoubleHashSet()
getModeTDoubleHashSet
in class Grid2DSquareCellDoubleChunkAbstract
public double getMedianDouble()
getMedianDouble
in class Grid2DSquareCellDoubleChunkAbstract
public double getStandardDeviationDouble()
getStandardDeviationDouble
in class Grid2DSquareCellDoubleChunkAbstract
public java.math.BigInteger getDiversityBigInteger()
public AbstractIterator iterator()
iterator
in class Grid2DSquareCellChunkAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |