AURobotServers  4
Public Member Functions | Public Attributes | List of all members
UCalibXYStat Class Reference

#include <ucalibrate.h>

Public Member Functions

int add (float x, float y)
 
void clear ()
 
int FromSumToStat (void)
 
 UCalibXYStat ()
 

Public Attributes

float d
 
int endId
 
bool flag
 
int id
 
int n
 
float vx
 
float vy
 
float x
 
float y
 

Detailed Description

Class for x,y statistics, of distance to calibration components. Sum and squared sum can be accumulated in x,y and vx, vy and n increased. After ending the sum the statistics mean van be evaluated in x,y, the variance in vx, vy and standard deviation in sx, sy.

Constructor & Destructor Documentation

UCalibXYStat::UCalibXYStat ( )

Constructor, just resets values

Member Function Documentation

int UCalibXYStat::add ( float  x,
float  y 
)

Add a new set of values. returns the number of samples, or -1 if error. Reports error if justSum is false.

References n, sqr(), vx, vy, x, and y.

void UCalibXYStat::clear ( void  )
int UCalibXYStat::FromSumToStat ( void  )

Convert to statistics - mean and variance. returns n if valid else -1

Convert to statistics - mean, variance and std.deviation. returns n if valid else -1

References n, sqr(), vx, vy, x, and y.

Member Data Documentation

float UCalibXYStat::d
int UCalibXYStat::endId
bool UCalibXYStat::flag

Flag to mark valid direction

Referenced by clear().

int UCalibXYStat::id
int UCalibXYStat::n
float UCalibXYStat::vx
float UCalibXYStat::vy
float UCalibXYStat::x
float UCalibXYStat::y

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