#include <estimation.hpp>
Inheritance diagram for Arak::PointSetColorEstimator:
(For a grid of estimates, use GridColorEstimator instead.)
Definition at line 157 of file estimation.hpp.
Public Member Functions | |
PointSetColorEstimator (ArakMarkovChain &chain, const Arak::Util::PropertyMap &props) | |
Constructor for a grid of point color estimators. | |
virtual | ~PointSetColorEstimator () |
Destructor. | |
virtual PointColorEstimator * | create (const QueryPoint &p) |
Creates a new listener for the supplied point. | |
virtual void | visualize (CGAL::Qt_widget &widget) const |
Renders a graphical representation of this point set color estimator using the supplied widget. | |
template<typename charT, typename traits> void | write (std::basic_ostream< charT, traits > &out) const |
Writes an ASCII representation of the current estimates to the supplied stream. | |
Protected Attributes | |
const ArakMarkovChain & | chain |
The Markov chain generating the samples used in estimation. | |
std::list< PointColorEstimator * > | estimators |
A list of the point color estimators. | |
QueryPointIndex * | index |
An index of the query points at whose locations the color is estimated. |
|
Constructor for a grid of point color estimators. This constructor uses the properties "arak.mcmc.estimation.avg_grid.rows" and "arak.mcmc.estimation.avg_grid.cols" to define a grid of points at which the color is estimated.
Definition at line 7 of file estimation.cpp. References Arak::QueryPointIndex::addListeners(), Arak::ArakMarkovChain, Arak::MarkovChain< MarkovChainTraits >::getState(), Arak::Util::PropertyMap, and Arak::Geometry::Rectangle. |
|
Destructor.
Definition at line 196 of file estimation.hpp. References estimators. |
|
Creates a new listener for the supplied point.
Implements Arak::QueryPointListenerFactory. Definition at line 209 of file estimation.hpp. References Arak::QueryPoint::color(), and estimators. |
|
Renders a graphical representation of this point set color estimator using the supplied widget. The point color estimates are rendered as squares of varying gray level.
Definition at line 26 of file estimation.cpp. References Arak::PointColorEstimator::estimate(), estimators, and Arak::PointColorEstimator::point. Referenced by Arak::operator<<(). |
|
Writes an ASCII representation of the current estimates to the supplied stream. Each line is "x y p" where (x, y) is the coordinate of the point and p is the probability the point is black.
Definition at line 236 of file estimation.hpp. References Arak::PointColorEstimator::estimate(), estimators, Arak::MarkovChain< MarkovChainTraits >::getNumSamples(), Arak::PointColorEstimator::point, and POINT_SET_ESTIMATE_HEADER. |
|
The Markov chain generating the samples used in estimation.
Definition at line 164 of file estimation.hpp. |
|
A list of the point color estimators.
Definition at line 169 of file estimation.hpp. Referenced by create(), visualize(), write(), and ~PointSetColorEstimator(). |
|
An index of the query points at whose locations the color is estimated.
Definition at line 175 of file estimation.hpp. |