w2img::Correlogram::GaussianFit Class Reference

List of all members.

Detailed Description

Fit a gaussian to a correlogram.

You can use this gaussian fit to get the correlation rho for any arbitrary distance.

The fit gaussian of the form f(h) = c exp( -(h/a)^2 ). c is called the sill and a is called the range. h is the distance between the two points.

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


Public Member Functions

 GaussianFit (const Correlogram &sample_rhos, size_t maxSamples=0)
 pass in the correlogram and how many samples you want to fit over.
bool isValid () const
 won't be valid incase of singularity problems.
float getSill () const
 Sill (c) of the fit equation.
float getRange () const
 range (a) of the fit equation.
float getDistance (float rho) const
 return the distance, h, at which the correlation falls below this value.
float getRho (float dist) const
 get the correlation at a distance.
code::Image< float > computeKernel () const
code::Image< float > computeQuarterKernel () const


Constructor & Destructor Documentation

w2img::Correlogram::GaussianFit::GaussianFit ( const Correlogram sample_rhos,
size_t  maxSamples = 0 
)

pass in the correlogram and how many samples you want to fit over.

Zero indicates everything ...


Member Function Documentation

code::Image<float> w2img::Correlogram::GaussianFit::computeKernel (  )  const

Returns:
a kernel suitable for using with KernelFilter. The center pixel corresponds to distance of 0 and is maximum.

code::Image<float> w2img::Correlogram::GaussianFit::computeQuarterKernel (  )  const

Returns:
quadrant of full kernel (one quadrant) of rhos with distances. The 0,0 corresponds to distance of 0 and is maximum.

float w2img::Correlogram::GaussianFit::getDistance ( float  rho  )  const

return the distance, h, at which the correlation falls below this value.

float w2img::Correlogram::GaussianFit::getRange (  )  const [inline]

range (a) of the fit equation.

You *can* pass in distances > range

float w2img::Correlogram::GaussianFit::getRho ( float  dist  )  const

get the correlation at a distance.

float w2img::Correlogram::GaussianFit::getSill (  )  const [inline]

Sill (c) of the fit equation.

bool w2img::Correlogram::GaussianFit::isValid (  )  const [inline]

won't be valid incase of singularity problems.


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