#include <estimation.hpp>
Inheritance diagram for Arak::PointColorEstimator:
Definition at line 45 of file estimation.hpp.
Public Member Functions | |
PointColorEstimator (const ArakMarkovChain &chain, const Geometry::Point &point, Color color) | |
Constructor. | |
virtual | ~PointColorEstimator () |
Destructor. | |
virtual void | recolor (Color color) |
Reacts to information that the query point has been recolored. | |
double | estimate () const |
Returns the estimated probability the point is colored black. | |
Protected Member Functions | |
void | update (Color color, unsigned long int time) |
Updates this estimator to reflect that the color of the point was updated. | |
Protected Attributes | |
const ArakMarkovChain & | chain |
The Markov chain generating the samples used by this estimator. | |
const Geometry::Point | point |
The location at which the color is being estimated. | |
unsigned long int | updated |
The time (in Markov chain samples, not steps) in which the estimator was last updated. | |
Color | color |
This the last color used to update the estimator. | |
unsigned long int | numBlack |
The number of samples in which the point was colored black. | |
unsigned long int | numWhite |
The number of samples in which the point was colored white. | |
Friends | |
class | PointSetColorEstimator |
class | GridColorEstimator |
|
Constructor.
Definition at line 113 of file estimation.hpp. References Arak::ArakMarkovChain, numBlack, numWhite, Arak::Geometry::Point, and updated. |
|
Destructor.
Definition at line 123 of file estimation.hpp. |
|
Returns the estimated probability the point is colored black.
Definition at line 138 of file estimation.hpp. References Arak::BLACK, chain, Arak::MarkovChain< MarkovChainTraits >::getNumSamples(), numBlack, numWhite, and updated. Referenced by Arak::GridColorEstimator::visualize(), Arak::PointSetColorEstimator::visualize(), Arak::GridColorEstimator::write(), and Arak::PointSetColorEstimator::write(). |
|
Reacts to information that the query point has been recolored. The estimator is updated.
Implements Arak::QueryPointListener. Definition at line 131 of file estimation.hpp. References chain, Arak::MarkovChain< MarkovChainTraits >::getNumSamples(), and update(). Referenced by Arak::GridColorEstimator::recolored(). |
|
Updates this estimator to reflect that the color of the point was updated.
Definition at line 90 of file estimation.hpp. References Arak::BLACK, numBlack, numWhite, updated, and Arak::WHITE. Referenced by recolor(). |
|
Definition at line 48 of file estimation.hpp. |
|
Definition at line 47 of file estimation.hpp. |
|
The Markov chain generating the samples used by this estimator.
Definition at line 55 of file estimation.hpp. Referenced by estimate(), and recolor(). |
|
This the last color used to update the estimator.
Definition at line 71 of file estimation.hpp. Referenced by Arak::GridColorEstimator::recolored(). |
|
The number of samples in which the point was colored black.
Definition at line 76 of file estimation.hpp. Referenced by estimate(), PointColorEstimator(), and update(). |
|
The number of samples in which the point was colored white.
Definition at line 81 of file estimation.hpp. Referenced by estimate(), PointColorEstimator(), and update(). |
|
The location at which the color is being estimated.
Definition at line 60 of file estimation.hpp. Referenced by Arak::GridColorEstimator::recolored(), Arak::PointSetColorEstimator::visualize(), and Arak::PointSetColorEstimator::write(). |
|
The time (in Markov chain samples, not steps) in which the estimator was last updated.
Definition at line 66 of file estimation.hpp. Referenced by estimate(), PointColorEstimator(), and update(). |