w2img::DataTableCorrelogram Class Reference

Inheritance diagram for w2img::DataTableCorrelogram:

w2img::Correlogram List of all members.

Detailed Description

Create a correlogram from a data table of observations.

Author:
Lakshman
Version:
Id
w2img_Correlogram.h,v 1.5 2009/06/02 20:17:57 lakshman Exp


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


Constructor & Destructor Documentation

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]


Member Function Documentation

virtual size_t w2img::DataTableCorrelogram::getAverageDistance (  )  const [inline, virtual]

What is the average distance between samples?

Implements w2img::Correlogram.

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.

Returns:
true on success.


Member Data Documentation

std::vector< Sample > w2img::Correlogram::func [protected, inherited]


Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7