Inheritance diagram for w2img::DataTableCorrelogram:
Public Member Functions | |
DataTableCorrelogram (const std::string &dataColumnName, const std::string &idColumnName, const code::Angle &latres, const code::Angle &lonres) | |
The correlogram is estimated as a function of range. | |
void | update (const code::DataTable &table) |
update based on the rows in this table. | |
virtual | ~DataTableCorrelogram () |
virtual size_t | getAverageDistance () const |
What is the average distance between samples? | |
bool | write (const std::string &filename) const |
Write the correlogram values in a format fit to be easily plotted. | |
const Sample & | operator[] (size_t dist) const |
get the correlation between two samples separated by dist pixels in an euclidean framework. | |
size_t | size () const |
Distance to which we have samples available. | |
Protected Member Functions | |
Sample & | operator[] (size_t dist) |
Protected Attributes | |
std::vector< Sample > | func |
w2img::DataTableCorrelogram::DataTableCorrelogram | ( | const std::string & | dataColumnName, | |
const std::string & | idColumnName, | |||
const code::Angle & | latres, | |||
const code::Angle & | lonres | |||
) |
The correlogram is estimated as a function of range.
So, provide the maximum range that we should consider (in pixels). The distance is computed in pixels of a lat-lon grid (not in kms), so provide the latitude and longitude resolution of that grid here.
virtual w2img::DataTableCorrelogram::~DataTableCorrelogram | ( | ) | [inline, virtual] |
virtual size_t w2img::DataTableCorrelogram::getAverageDistance | ( | ) | const [inline, virtual] |
Sample& w2img::Correlogram::operator[] | ( | size_t | dist | ) | [inline, protected, inherited] |
const Sample& w2img::Correlogram::operator[] | ( | size_t | dist | ) | const [inline, inherited] |
get the correlation between two samples separated by dist pixels in an euclidean framework.
dist has to be less than getMaxDistanceInPixels()
size_t w2img::Correlogram::size | ( | ) | const [inline, inherited] |
Distance to which we have samples available.
void w2img::DataTableCorrelogram::update | ( | const code::DataTable & | table | ) |
update based on the rows in this table.
The distances between the rows in this data table are cached, so we don't need to recompute.
bool w2img::Correlogram::write | ( | const std::string & | filename | ) | const [inherited] |
Write the correlogram values in a format fit to be easily plotted.
std::vector< Sample > w2img::Correlogram::func [protected, inherited] |