public class RefSimplex extends java.lang.Object implements Simplex
Modifier and Type | Class and Description |
---|---|
class |
RefSimplex.IntersectObjective |
Constructor and Description |
---|
RefSimplex(DblMatrix dat) |
RefSimplex(DblMatrix dat,
DblMatrix rowofidxs)
For a row vector of integer indices and corresponding reference data.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Integer intval) |
void |
addNoUpdate(java.lang.Integer intval) |
void |
addVertexListener(VertexListener l) |
java.lang.Object |
clone() |
DblMatrix |
dd(java.lang.Integer pidx)
Returns the DeWall algorithm's "Delaunay distance" for the vertex whose index is specified.
|
void |
fireVertexEvent(VertexEvent dv) |
DblMatrix |
getCentroid() |
DblMatrix |
getCircumcenter() |
DblMatrix |
getCircumradius() |
DblMatrix |
getCoords()
Returns the data coordinates as a matrix.
|
DblMatrix |
getCoordsOf(java.lang.Integer row)
Returns the data coordinates at the given index.
|
DblMatrix |
getData() |
int |
getDimension() |
java.lang.Integer |
getElement(int k) |
java.lang.Integer |
getExcludedPoint() |
java.lang.Integer |
getIndex(int j) |
java.lang.String |
getLabel() |
RefSimplex |
getParent() |
DblMatrix |
getPerimeter()
Returns the perimeter (2D only) of this simplex.
|
DblMatrix |
getTolerance() |
DblMatrix |
getVolume()
Returns the volume (area in 2D) of this simplex.
|
boolean |
hasFace(RefSimplex simp)
Returns true if any of this D simplice's faces are the same as the D-1 simplex given.
|
boolean |
hasIndex(java.lang.Integer vert) |
int |
intersects(RefSimplex other)
Returns 0 if the given simplex does not intersect with this one.
|
boolean |
intersectsAny(java.util.Vector other)
Returns true if this simplex intersects with any of the given simplices.
|
boolean |
memberOf(java.util.Vector simplices)
Returns true if this simplex is a member of the collection.
|
void |
remove(java.lang.Integer idx) |
void |
removeVertexListener(VertexListener l) |
boolean |
sameAs(RefSimplex f)
Returns true if the two simplices have the same vertices - not necessarily in the same order.
|
void |
setData(DblMatrix r) |
void |
setExcludedPoint(java.lang.Integer didx) |
void |
setLabel(java.lang.String l) |
void |
setParent(RefSimplex par) |
void |
setTolerance(DblMatrix tol) |
void |
show() |
void |
show(java.lang.String msg) |
int |
size() |
java.util.Vector |
subFacesOf()
Return all "faces" of this simplex.
|
boolean |
surroundsCoords(DblMatrix Po)
Returns true if the given coordinate is contained within this simplex.
|
void |
update() |
java.util.Vector |
verticesOf() |
public RefSimplex(DblMatrix dat)
public void setLabel(java.lang.String l)
setLabel
in interface GridElement
public java.lang.String getLabel()
getLabel
in interface GridElement
public void addVertexListener(VertexListener l)
addVertexListener
in interface GridElement
public void removeVertexListener(VertexListener l)
removeVertexListener
in interface GridElement
public void fireVertexEvent(VertexEvent dv)
fireVertexEvent
in interface GridElement
public void setData(DblMatrix r)
public DblMatrix getData()
public void setTolerance(DblMatrix tol)
public DblMatrix getTolerance()
public void setExcludedPoint(java.lang.Integer didx)
public java.lang.Integer getExcludedPoint()
public void setParent(RefSimplex par)
public RefSimplex getParent()
getParent
in interface GridElement
public boolean hasFace(RefSimplex simp)
public boolean hasIndex(java.lang.Integer vert)
public boolean memberOf(java.util.Vector simplices)
public boolean intersectsAny(java.util.Vector other)
public int intersects(RefSimplex other)
public java.util.Vector verticesOf()
verticesOf
in interface GridElement
public java.util.Vector subFacesOf()
subFacesOf
in interface GridElement
public java.lang.Object clone()
public DblMatrix getCoordsOf(java.lang.Integer row)
getCoordsOf
in interface GridElement
public DblMatrix getCoords()
getCoords
in interface GridElement
public void addNoUpdate(java.lang.Integer intval)
public void update()
public java.lang.Integer getIndex(int j)
getIndex
in interface GridElement
public DblMatrix getPerimeter()
getPerimeter
in interface GridElement
public DblMatrix getVolume()
getVolume
in interface GridElement
public boolean sameAs(RefSimplex f)
public DblMatrix dd(java.lang.Integer pidx)
public java.lang.Integer getElement(int k)
getElement
in interface Simplex
public boolean surroundsCoords(DblMatrix Po)
surroundsCoords
in interface Simplex
public int getDimension()
getDimension
in interface GridElement
public DblMatrix getCircumcenter()
public DblMatrix getCircumradius()
public DblMatrix getCentroid()
getCentroid
in interface GridElement
public int size()
size
in interface GridElement
Copyright © 2011, 2013. Daniel P. Dougherty