tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
LLSQ Class Reference

#include <linlsq.h>

Public Member Functions

 LLSQ ()
 
void clear ()
 
void add (double x, double y)
 
void add (double x, double y, double weight)
 
void add (const LLSQ &other)
 
void remove (double x, double y)
 
int32_t count () const
 
double m () const
 
double c (double m) const
 
double rms (double m, double c) const
 
double pearson () const
 
FCOORD mean_point () const
 
double rms_orth (const FCOORD &dir) const
 
FCOORD vector_fit () const
 
double covariance () const
 
double x_variance () const
 
double y_variance () const
 

Private Attributes

double total_weight
 
double sigx
 
double sigy
 
double sigxx
 
double sigxy
 
double sigyy
 

Constructor & Destructor Documentation

◆ LLSQ()

LLSQ::LLSQ ( )
inline

Member Function Documentation

◆ add() [1/3]

void LLSQ::add ( double  x,
double  y 
)

◆ add() [2/3]

void LLSQ::add ( double  x,
double  y,
double  weight 
)

◆ add() [3/3]

void LLSQ::add ( const LLSQ other)

◆ c()

double LLSQ::c ( double  m) const

◆ clear()

void LLSQ::clear ( )

◆ count()

int32_t LLSQ::count ( ) const
inline

◆ covariance()

double LLSQ::covariance ( ) const
inline

◆ m()

double LLSQ::m ( ) const

◆ mean_point()

FCOORD LLSQ::mean_point ( ) const

◆ pearson()

double LLSQ::pearson ( ) const

◆ remove()

void LLSQ::remove ( double  x,
double  y 
)

◆ rms()

double LLSQ::rms ( double  m,
double  c 
) const

◆ rms_orth()

double LLSQ::rms_orth ( const FCOORD dir) const

◆ vector_fit()

FCOORD LLSQ::vector_fit ( ) const

◆ x_variance()

double LLSQ::x_variance ( ) const
inline

◆ y_variance()

double LLSQ::y_variance ( ) const
inline

Member Data Documentation

◆ sigx

double LLSQ::sigx
private

◆ sigxx

double LLSQ::sigxx
private

◆ sigxy

double LLSQ::sigxy
private

◆ sigy

double LLSQ::sigy
private

◆ sigyy

double LLSQ::sigyy
private

◆ total_weight

double LLSQ::total_weight
private

The documentation for this class was generated from the following files: