#include <arak.hpp>
Inheritance diagram for Arak::ArakPrior:
The Arak prior potential is
This potential is additively decomposable so the Arak process has the spatial Markov property.
Definition at line 171 of file arak.hpp.
Public Member Functions | |
ArakPrior (Coloring &c, double p=1.0) | |
Default constructor. | |
ArakPrior (Coloring &c, const Arak::Util::PropertyMap &props) | |
Constructor. | |
virtual | ~ArakPrior () |
Destructor. | |
virtual double | scale () const |
Returns the scale of this Arak process. | |
virtual double | logMeasure () const |
Computes the (log) measure associated with the Arak process for the coloring. | |
virtual double | potential () const |
Computes the potential associated with the Arak process. | |
virtual void | recolored (const Geometry::Point &a, const Geometry::Point &b, const Geometry::Point &c) |
This method is invoked to inform this process that the triangle with the supplied vertices has been recolored. | |
virtual void | recolored (const Geometry::Point &a, const Geometry::Point &b, const Geometry::Point &c, const Geometry::Point &d) |
This method is invoked to inform this process that the quadrilateral with the supplied vertices has been recolored. | |
virtual void | vertexHasBeenAdded (Coloring::VertexHandle vh) |
This method is invoked to inform the listener that a new vertex has been added to the coloring. | |
virtual void | vertexWillBeRemoved (Coloring::VertexHandle vh) |
This method is invoked to inform the listener that an existing vertex is about to be removed from the coloring. | |
virtual void | edgeHasBeenAdded (Coloring::IntEdgeHandle eh) |
This method is invoked to inform the listener that a new (interior) edge has been added to the coloring. | |
virtual void | edgeWillBeRemoved (Coloring::IntEdgeHandle eh) |
This method is invoked to inform the listener that an existing (interior) edge will be removed from the coloring. | |
virtual void | visualize (CGAL::Qt_widget &widget) const |
Renders a graphical representation of an Arak process using the supplied widget. | |
Protected Member Functions | |
void | initialize () |
Initializes this Arak process object. | |
Protected Attributes | |
double | p |
A scale parameter for the Arak process. | |
double | sumLogLengths |
The (cached) sum of log lengths of the edges in the coloring. | |
double | sumLogSines |
The (cached) sum of log sines of the angles in the coloring. | |
double | sumLengths |
The (cached) sum of lengths of the edges in the coloring. |
|
Default constructor.
Definition at line 244 of file arak.hpp. References initialize(). |
|
Constructor.
Definition at line 258 of file arak.hpp. References initialize(), p, and Arak::Util::PropertyMap. |
|
Destructor.
|
|
This method is invoked to inform the listener that a new (interior) edge has been added to the coloring.
Reimplemented from Arak::Coloring::Listener. Definition at line 30 of file arak.cpp. References Arak::Coloring::IntEdgeHandle, Arak::ln(), NEGATIVE_INFINITY, sumLengths, and sumLogLengths. Referenced by initialize(). |
|
This method is invoked to inform the listener that an existing (interior) edge will be removed from the coloring.
Reimplemented from Arak::Coloring::Listener. Definition at line 37 of file arak.cpp. References Arak::Coloring::IntEdgeHandle, Arak::ln(), NEGATIVE_INFINITY, sumLengths, and sumLogLengths. |
|
Initializes this Arak process object.
Definition at line 9 of file arak.cpp. References Arak::Coloring::addListener(), edgeHasBeenAdded(), Arak::Coloring::getInteriorEdge(), Arak::Coloring::getVertex(), Arak::Coloring::numInteriorEdges(), Arak::Coloring::numVertices(), sumLengths, sumLogLengths, sumLogSines, and vertexHasBeenAdded(). Referenced by ArakPrior(). |
|
Computes the (log) measure associated with the Arak process for the coloring. (This is actually multiplied by an elementary Poisson measure over the vertex locations to yield the coloring measure.)
Implements Arak::ArakProcess. Definition at line 45 of file arak.cpp. References Arak::ln(), Arak::Coloring::numInteriorEdges(), p, sumLogLengths, and sumLogSines. |
|
Computes the potential associated with the Arak process. This implementation evaluates to the prior potential. Posterior Arak processes add to this prior potential terms that depend upon the observed data. If the posterior potential is additively decomposable then the posterior Arak process has the spatial Markov property.
Implements Arak::ArakProcess. Definition at line 297 of file arak.hpp. References p, and sumLengths. |
|
This method is invoked to inform this process that the quadrilateral with the supplied vertices has been recolored. The vertices are supplied in either clockwise or counter-clockwise order. Note that this quadrilateral is simple, but not necessarily convex.
Reimplemented from Arak::Coloring::Listener. Definition at line 325 of file arak.hpp. References Arak::Geometry::Point. |
|
This method is invoked to inform this process that the triangle with the supplied vertices has been recolored.
Reimplemented from Arak::Coloring::Listener. Definition at line 309 of file arak.hpp. References Arak::Geometry::Point. |
|
Returns the scale of this Arak process.
Implements Arak::ArakProcess. Definition at line 273 of file arak.hpp. References p. |
|
This method is invoked to inform the listener that a new vertex has been added to the coloring.
Reimplemented from Arak::Coloring::Listener. Definition at line 22 of file arak.cpp. References NEGATIVE_INFINITY, sumLogSines, and Arak::Coloring::VertexHandle. Referenced by initialize(). |
|
This method is invoked to inform the listener that an existing vertex is about to be removed from the coloring.
Reimplemented from Arak::Coloring::Listener. Definition at line 26 of file arak.cpp. References NEGATIVE_INFINITY, sumLogSines, and Arak::Coloring::VertexHandle. |
|
Renders a graphical representation of an Arak process using the supplied widget. This base implementation does nothing, but derived instances that represent posteriors can specialize this method to visualize their observations.
Reimplemented from Arak::ArakProcess. |
|
A scale parameter for the Arak process.
The expected number of vertices in a region of area Definition at line 180 of file arak.hpp. Referenced by ArakPrior(), logMeasure(), potential(), and scale(). |
|
The (cached) sum of lengths of the edges in the coloring. This is equal to
where Definition at line 226 of file arak.hpp. Referenced by edgeHasBeenAdded(), edgeWillBeRemoved(), initialize(), and potential(). |
|
The (cached) sum of log lengths of the edges in the coloring. This is equal to
where Definition at line 194 of file arak.hpp. Referenced by edgeHasBeenAdded(), edgeWillBeRemoved(), initialize(), and logMeasure(). |
|
The (cached) sum of log sines of the angles in the coloring. This is equal to
where Definition at line 212 of file arak.hpp. Referenced by initialize(), logMeasure(), vertexHasBeenAdded(), and vertexWillBeRemoved(). |