public class HexBinningAlg extends java.lang.Object implements BinningAlg
BinningAlg for generating spatial binning with hexagonal cells| Constructor and Description |
|---|
HexBinningAlg(BinningConfig binConf)
Creates a new instance of
HexBinningAlg |
| Modifier and Type | Method and Description |
|---|---|
BinningConfig |
getBinningConfig()
Gets the binning configuration
|
void |
getCell(double x, double y, int[] cell)
Gets the row and column of the cell that contains the given point.
|
void |
getCell(long cellId, int[] cell)
Gets the row and column of the cell with the given id
|
long |
getCellId(int[] cell)
Gets the id of the cell represented by the given row and column
|
void |
getCellMbr(int[] cell, double[] cellMbr)
Gets the minimum bounding box of the given cell's row and column
|
void |
getCellOrdinates(int[] cell, double[] cellOrdinates)
Gets the ordinates of the given cell
|
int |
getCellOrdinatesLength()
Gets the number of ordinates that contains any cell created by this algorithm
|
boolean |
isValidCell(int[] cell)
Indicates whether a given cell is valid within the current binning configuration or not
|
public HexBinningAlg(BinningConfig binConf)
HexBinningAlgbinConf - a binning configurationpublic BinningConfig getBinningConfig()
BinningAlggetBinningConfig in interface BinningAlg
public void getCell(double x,
double y,
int[] cell)
BinningAlggetCell in interface BinningAlgx - The point`s x ordinatey - The point`s y ordinatecell - An output parameter which will hold the cell's row and column
public void getCellMbr(int[] cell,
double[] cellMbr)
BinningAlggetCellMbr in interface BinningAlgcell - a cell's row and columncellMbr - An output parameter which will hold the cell's mbr
public void getCellOrdinates(int[] cell,
double[] cellOrdinates)
BinningAlggetCellOrdinates in interface BinningAlgcell - a cell's row and columncellOrdinates - An output parameter which will hold the cell's ordinatespublic int getCellOrdinatesLength()
BinningAlggetCellOrdinatesLength in interface BinningAlg
public void getCell(long cellId,
int[] cell)
BinningAlggetCell in interface BinningAlgcellId - the cell idcell - An output parameter which will hold the cell's row and columnpublic long getCellId(int[] cell)
BinningAlggetCellId in interface BinningAlgcell - a cell's row and columnpublic boolean isValidCell(int[] cell)
BinningAlgisValidCell in interface BinningAlgcell - a cell's row and columnCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.