#include <point_obs.hpp>
Inheritance diagram for Arak::ArakPosteriorGaussianObs:
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 110 of file point_obs.hpp.
Public Member Functions | |
ArakPosteriorGaussianObs (const ArakProcess &prior, const Arak::Util::PropertyMap &props) | |
Stream constructor. | |
virtual | ~ArakPosteriorGaussianObs () |
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< double > | obs |
A vector of the observations for each point. | |
std::vector< QueryPointPotential * > | potentials |
A vector of potentials, one per observation. | |
double | whiteMean |
The mean color observation for a white point. | |
double | blackMean |
The mean color observation for a black point. | |
double | whiteVar |
The variance of observations of white points. | |
double | blackVar |
The variance of observations of black points. | |
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 9 of file point_obs.cpp. References Arak::Coloring::addQueryPoints(), blackMean, blackVar, lp, obs, Arak::Geometry::Point, points, potentials, prior, Arak::Util::PropertyMap, whiteMean, and whiteVar. |
|
Destructor.
Definition at line 56 of file point_obs.cpp. References potentials. |
|
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 48 of file point_obs.cpp. References Arak::ArakProcess::logMeasure(), and prior. |
|
Computes the potential associated with this posterior Arak process.
Implements Arak::ArakProcess. Definition at line 52 of file point_obs.cpp. References lp, Arak::ArakProcess::potential(), and prior. |
|
Returns the scale of this Arak process.
Implements Arak::ArakProcess. Definition at line 191 of file point_obs.hpp. References prior, and Arak::ArakProcess::scale(). |
|
Renders a graphical representation of this Arak posterior using the supplied widget. The Gaussian observations are rendered as disks of varying gray level.
Reimplemented from Arak::ArakProcess. Definition at line 61 of file point_obs.cpp. References blackMean, blackVar, obs, points, whiteMean, and whiteVar. |
|
The mean color observation for a black point.
Definition at line 143 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |
|
The variance of observations of black points.
Definition at line 153 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |
|
The current potential arising from observations.
Definition at line 158 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and potential(). |
|
A vector of the observations for each point. The indices used in points index into this vector. Definition at line 128 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |
|
A vector of points for which observations are available.
Definition at line 122 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |
|
A vector of potentials, one per observation.
Definition at line 133 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and ~ArakPosteriorGaussianObs(). |
|
The prior process.
Definition at line 117 of file point_obs.hpp. Referenced by logMeasure(), potential(), and scale(). |
|
The mean color observation for a white point.
Definition at line 138 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |
|
The variance of observations of white points.
Definition at line 148 of file point_obs.hpp. Referenced by ArakPosteriorGaussianObs(), and visualize(). |