#include <arak.hpp>
Inheritance diagram for Arak::ArakProcess:
This is a probability distribution over binary colorings of the plane whose discontinuities are line segments.
It consists of two parts. The first part is a fundamental measure
where is a graph,
is the number of vertices in the interior,
is the number of vertices on the boundary,
is the length of edge
,
is the smaller angle between the edges incident to vertex
(or if
is on the boundary, the smaller angle between the only edge incident to
and the tangent to the boundary), and
is the Poisson measure of unit intensity associated with the vertices of the graph
.
The second part is a potential over the coloring such that the probability measure is given by
The Arak prior sets this potential to be
but posteriors typically include in this potential terms that depend upon the observed data. So long as the potential is additively decomposable the Arak process has the spatial Markov property.
Definition at line 51 of file arak.hpp.
Public Member Functions | |
ArakProcess (const Coloring &c) | |
Default constructor. | |
virtual | ~ArakProcess () |
Destructor. | |
const Coloring & | getColoring () const |
Returns a const reference to the coloring whose probability is assessed by this process. | |
virtual double | scale () const=0 |
Returns the scale of this Arak process. | |
virtual double | logMeasure () const=0 |
Computes the (log) measure associated with the Arak process for the coloring. | |
virtual double | potential () const=0 |
Computes the potential associated with the Arak process. | |
double | logLikelihood (double temp=1.0) const |
Returns the log likelihood of the supplied coloring. | |
double | logLikelihood (Coloring &c, double temp=1.0) const |
Returns the log likelihood of the supplied coloring. | |
virtual void | visualize (CGAL::Qt_widget &widget) const |
Renders a graphical representation of an Arak process using the supplied widget. | |
Protected Attributes | |
const Coloring & | c |
The coloring whose probability is evaluated. |
|
Default constructor.
|
|
Destructor.
|
|
Returns a const reference to the coloring whose probability is assessed by this process.
Definition at line 83 of file arak.hpp. References c. Referenced by Arak::ArakPosteriorRangeObs::ArakPosteriorRangeObs(), and Arak::ArakPosteriorSonarObs::ArakPosteriorSonarObs(). |
|
Returns the log likelihood of the supplied coloring.
Definition at line 131 of file arak.hpp. References logLikelihood(). |
|
Returns the log likelihood of the supplied coloring.
Definition at line 119 of file arak.hpp. References logMeasure(), and potential(). Referenced by logLikelihood(). |
|
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.)
Implemented in Arak::ArakPrior, Arak::ArakPosteriorGaussianObs, Arak::ArakPosteriorBernoulliObs, Arak::ArakPosteriorRangeObs, and Arak::ArakPosteriorSonarObs. Referenced by logLikelihood(), Arak::ArakPosteriorSonarObs::logMeasure(), Arak::ArakPosteriorRangeObs::logMeasure(), Arak::ArakPosteriorBernoulliObs::logMeasure(), and Arak::ArakPosteriorGaussianObs::logMeasure(). |
|
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.
Implemented in Arak::ArakPrior, Arak::ArakPosteriorGaussianObs, Arak::ArakPosteriorBernoulliObs, Arak::ArakPosteriorRangeObs, and Arak::ArakPosteriorSonarObs. Referenced by logLikelihood(), Arak::ArakPosteriorSonarObs::potential(), Arak::ArakPosteriorRangeObs::potential(), Arak::ArakPosteriorBernoulliObs::potential(), and Arak::ArakPosteriorGaussianObs::potential(). |
|
Returns the scale of this Arak process.
Implemented in Arak::ArakPrior, Arak::ArakPosteriorGaussianObs, Arak::ArakPosteriorBernoulliObs, Arak::ArakPosteriorRangeObs, and Arak::ArakPosteriorSonarObs. Referenced by Arak::ArakPosteriorSonarObs::scale(), Arak::ArakPosteriorRangeObs::scale(), Arak::ArakPosteriorBernoulliObs::scale(), and Arak::ArakPosteriorGaussianObs::scale(). |
|
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 in Arak::ArakPrior, Arak::ArakPosteriorGaussianObs, Arak::ArakPosteriorBernoulliObs, Arak::ArakPosteriorRangeObs, and Arak::ArakPosteriorSonarObs. Definition at line 144 of file arak.hpp. Referenced by Arak::ColoringQTLayer::draw(), and Arak::operator<<(). |
|
The coloring whose probability is evaluated. This is fixed for each process object so that likelihood changes due to coloring updates can be processed efficiently. Definition at line 60 of file arak.hpp. Referenced by getColoring(). |