#include <point_obs.hpp>
Inheritance diagram for Arak::ArakPosteriorBernoulliObs:
The posterior potential is given by
where is the location of a test point,
is its true color,
is the observed value, and
and
are the conditional mean and variance of the observation given the true color is
.
This potential is additively decomposable so the posterior Arak process has the spatial Markov property.
Definition at line 251 of file point_obs.hpp.
Public Member Functions | |
ArakPosteriorBernoulliObs (const ArakProcess &prior, const Arak::Util::PropertyMap &props) | |
Stream constructor. | |
virtual | ~ArakPosteriorBernoulliObs () |
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 this posterior Arak process. | |
virtual void | visualize (CGAL::Qt_widget &widget) const |
Renders a graphical representation of this Arak posterior using the supplied widget. | |
Protected Attributes | |
const ArakProcess & | prior |
The prior process. | |
std::vector< Geometry::Point > | points |
A vector of points for which observations are available. | |
std::vector< QueryPointPotential * > | potentials |
A vector of potentials, one per observation. | |
std::vector< bool > | obs |
A vector of the observations for each point. | |
double | blackProb |
The conditional probability a black point will be observed as black. | |
double | whiteProb |
The conditional probability a white point will be observed as white. | |
double | lp |
The current potential arising from observations. |
|
Stream constructor. The parameters of the posterior are read from a file with the following format:
Definition at line 82 of file point_obs.cpp. References Arak::Coloring::addQueryPoints(), blackProb, Arak::ln(), Arak::Geometry::Point, Arak::Util::PropertyMap, and whiteProb. |
|
Destructor.
Definition at line 123 of file point_obs.cpp. |
|
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 115 of file point_obs.cpp. References Arak::ArakProcess::logMeasure(). |
|
Computes the potential associated with this posterior Arak process.
Implements Arak::ArakProcess. Definition at line 119 of file point_obs.cpp. References Arak::ArakProcess::potential(). |
|
Returns the scale of this Arak process.
Implements Arak::ArakProcess. Definition at line 324 of file point_obs.hpp. References Arak::ArakProcess::scale(). |
|
Renders a graphical representation of this Arak posterior using the supplied widget. The Bernoulli observations are rendered as disks of varying gray level.
Reimplemented from Arak::ArakProcess. Definition at line 128 of file point_obs.cpp. |
|
The conditional probability a black point will be observed as black.
Definition at line 280 of file point_obs.hpp. Referenced by ArakPosteriorBernoulliObs(). |
|
The current potential arising from observations.
Definition at line 291 of file point_obs.hpp. |
|
A vector of the observations for each point. The indices used in points index into this vector. Definition at line 274 of file point_obs.hpp. |
|
A vector of points for which observations are available.
Definition at line 263 of file point_obs.hpp. |
|
A vector of potentials, one per observation.
Definition at line 268 of file point_obs.hpp. |
|
The prior process.
Definition at line 258 of file point_obs.hpp. |
|
The conditional probability a white point will be observed as white.
Definition at line 286 of file point_obs.hpp. Referenced by ArakPosteriorBernoulliObs(). |