AURobotServers
4
|
#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 |
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.
UCalibXYStat::UCalibXYStat | ( | ) |
Constructor, just resets values
int UCalibXYStat::add | ( | float | x, |
float | y | ||
) |
void UCalibXYStat::clear | ( | void | ) |
Clear just clear values
References d, endId, flag, n, vx, vy, x, and y.
Referenced by UCalibrationComponent::clearNSEW(), UCalibrationComponents::DoFindNSEWHead(), and UCalibrationMarkSets::getCamPar().
int UCalibXYStat::FromSumToStat | ( | void | ) |
float UCalibXYStat::d |
Distance to other item
Referenced by UCalibBestArray::AddCandidate(), clear(), UCalibrationComponents::DoFindNSEW4(), UCalibrationComponents::DoFindNSEWHead(), UCalibrationComponents::DoFindRowLength4(), UCalibBestArray::DoLimitCandidates(), UCalibrationComponents::doMakeCodeGrid(), UCalibrationComponents::doOrderHits4(), UCalibrationComponents::DoValidateCandidates(), and UCalibrationComponents::findNextInThisDirection4().
int UCalibXYStat::endId |
Last ID in a linear row
Referenced by clear(), UCalibrationComponents::DoFindRowLength4(), and UCalibrationComponents::doOrderHits4().
bool UCalibXYStat::flag |
Flag to mark valid direction
Referenced by clear().
int UCalibXYStat::id |
Reference to the oother item
Referenced by UCalibrationComponents::DoFindNSEW4(), UCalibrationComponents::DoFindNSEWHead(), UCalibrationComponents::DoFindRowLength4(), UCalibrationComponents::doMakeCodeGrid(), UCalibrationComponents::doOrderHits4(), UCalibrationComponents::DoRemoveAndRetry(), UCalibrationComponents::DoValidateCandidates(), UCalibrationComponents::findNextInThisDirection4(), UCalibrationComponents::SetRowColForNeighbors(), and UCalibrationComponents::SetRowColFromNeighbor().
int UCalibXYStat::n |
Number of samples in structure
Referenced by add(), clear(), UCalibrationComponents::DoFindRowLength4(), UCalibrationComponents::doOrderHits4(), FromSumToStat(), UCalibrationComponent::PaintNeighbors(), and UCalibrationComponents::toLog().
float UCalibXYStat::vx |
Variance
Referenced by add(), clear(), UCalibrationComponents::DoFindRowLength4(), UCalibrationComponents::doOrderHits4(), FromSumToStat(), and UCalibrationComponents::toLog().
float UCalibXYStat::vy |
float UCalibXYStat::x |
Position, offset or average (x,y)
Referenced by add(), clear(), UCalibrationComponent::clear(), UCalibrationComponents::DoFindNSEW4(), UCalibrationComponents::DoFindNSEWHead(), UCalibrationComponents::DoFindRowLength4(), UCalibrationComponents::doMakeCodeGrid(), UCalibrationComponents::DoValidateCandidates(), UCalibrationComponents::findNextInThisDirection4(), FromSumToStat(), UCalibrationComponent::GetDist(), UCalibrationComponent::GetMaxBlockDist(), UCalibrationComponent::IsInRightQuadrant(), and UCalibrationComponent::PaintNeighbors().
float UCalibXYStat::y |
Referenced by add(), clear(), UCalibrationComponent::clear(), UCalibrationComponents::DoFindNSEW4(), UCalibrationComponents::DoFindNSEWHead(), UCalibrationComponents::DoFindRowLength4(), UCalibrationComponents::doMakeCodeGrid(), UCalibrationComponents::DoValidateCandidates(), UCalibrationComponents::findNextInThisDirection4(), FromSumToStat(), UCalibrationComponent::GetDist(), UCalibrationComponent::GetMaxBlockDist(), UCalibrationComponent::IsInRightQuadrant(), and UCalibrationComponent::PaintNeighbors().