public class Qdecomp extends java.lang.Object implements Displayable
Modifier and Type | Field and Description |
---|---|
protected int |
Dimension |
protected DblMatrix |
LowerBounds |
protected int |
MaxCount |
protected DblMatrix |
MaxExtent |
int |
MaxLevel |
protected java.lang.String |
Method |
protected int |
MinCount |
protected DblMatrix |
MinExtent |
QuadTreeFun |
QuadFun |
protected Nhood |
QuadNhood |
QTreeNode[] |
QuadTree |
protected java.lang.String |
ResponseType |
protected int |
SplitSize |
protected DblMatrix |
Threshold |
protected DblMatrix |
UpperBounds |
Constructor and Description |
---|
Qdecomp(DblMatrix[] XData,
DblMatrix YData)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
coalesce()
Iteratively perform rejoin operations until only a single quad is left.
|
void |
coalesce(int Level)
Iteratively perform rejoin operations until specified level is reached.
|
void |
decompose()
Fully decompose the data using the quadtree approach.
|
int[] |
getNeighbors(int Qind)
Find the neighbors of quad I.
|
void |
growQuadtree()
Reallocated the QuadTree for 2 additional levels.
|
boolean |
hasChildren(int I)
Determine if the node at index I has children.
|
static int[] |
indexOfChildren(int I,
int dim,
int level)
Return the quadtree indices of the Children of the current node.
|
static int |
indexOfParent(int I,
int dim,
int level)
Return the index of a given quad's parent quad.
|
static int |
indToQind(int Dim,
int Level,
int I)
Convert ND matrix index into quadtree index.
|
int |
locate(DblMatrix[] refpt)
Search the quadtree for a quad that contains the given coordinate.
|
int |
maxLevel()
Return the maximum level of any quad in the decomposition.
|
static int |
qindToInd(int Dim,
int Level,
int I)
Convert quadtree index into ND matrix index.
|
void |
quadBlkProc()
Process data using the current QuadFun.
|
void |
rcoalesce(int I,
int Level)
Helper for coalesce.
|
void |
rejoin(int I)
Replace the children of the indicated quad's parent with the union of the
data from each of the children.
|
int |
rlocate(DblMatrix[] refpt,
int queryLevel,
int quadIndex)
Search the quadtree for a quad that contains the given coordinate.
|
void |
setMinCount(int K)
Set the minimum observation count within a quad.
|
void |
setQuadResponse(DblMatrix newYData,
int I)
Set the response data for the given quad.
|
void |
setQuadTree(QTreeNode[] newQ)
Set pointer to the input QuadTree[].
|
void |
show()
Show the decomposition.
|
void |
show(java.lang.String Label)
Show the decomposition using a given label.
|
int[] |
Size()
Return the dimensions of the quad tree relative to a N-D cube.
|
static DblMatrix[][] |
solveBin(DblMatrix[] XData,
DblMatrix YData,
DblMatrix CenterOfQuad,
java.lang.String Method,
DblMatrix Indices)
Solve the binning problem for a newly formed quad.
|
void |
updateQuadNhood()
Update the Nhood size to equal that of the QuadTree.
|
public QTreeNode[] QuadTree
protected java.lang.String Method
protected int Dimension
protected int SplitSize
protected java.lang.String ResponseType
protected int MaxCount
protected int MinCount
protected DblMatrix MaxExtent
protected DblMatrix MinExtent
public int MaxLevel
protected DblMatrix Threshold
public QuadTreeFun QuadFun
protected Nhood QuadNhood
protected DblMatrix UpperBounds
protected DblMatrix LowerBounds
public void setMinCount(int K)
public static int indToQind(int Dim, int Level, int I)
public static int qindToInd(int Dim, int Level, int I)
public static DblMatrix[][] solveBin(DblMatrix[] XData, DblMatrix YData, DblMatrix CenterOfQuad, java.lang.String Method, DblMatrix Indices)
public static int[] indexOfChildren(int I, int dim, int level)
public void growQuadtree()
public void setQuadTree(QTreeNode[] newQ)
public void show(java.lang.String Label)
show
in interface Displayable
public void show()
show
in interface Displayable
public void updateQuadNhood()
public void decompose()
public boolean hasChildren(int I)
public void coalesce()
public int maxLevel()
public int[] Size()
public void coalesce(int Level)
public void rcoalesce(int I, int Level)
public void rejoin(int I)
public int locate(DblMatrix[] refpt)
public int rlocate(DblMatrix[] refpt, int queryLevel, int quadIndex)
public static int indexOfParent(int I, int dim, int level)
public void setQuadResponse(DblMatrix newYData, int I)
public void quadBlkProc()
public int[] getNeighbors(int Qind)
Copyright © 2011, 2013. Daniel P. Dougherty