tracker_function_lib.h File Reference


Detailed Description

A small library of useful function in a tracking context.

Author:
Kai Arras, AIS, Albert-Ludwigs-University of Freiburg, Germany
Version:
1.000
Date:
Sept-Oct 2006, last modification 20.10.06

Go to the source code of this file.

Functions

double tic_toc (int start)
 Stopwatch function for time measurements.
double tic_toc_cpu (int start)
 Stopwatch function for cpu time measurements.
void calc_ellipse (double xc, double yc, double a, double b, double phi, int &np, double *&x, double *&y)
 Calculate points of an ellipse.
void calc_prob_elli_95 (double xc, double yc, double sxx, double syy, double sxy, int &np, double *&x, double *&y)
 Calculate points of a 95% error ellipse.
void calc_prob_elli_99 (double xc, double yc, double sxx, double syy, double sxy, int &np, double *&x, double *&y)
 Calculate points of a 99% error ellipse.


Function Documentation

double tic_toc int  start  ) 
 

Stopwatch function for time measurements.

Stopwatch function for easy-to-use time measurements. Counts seconds and microseconds of the time spent between the two calls of gettimeofday regardless what happens in between (e.g. your process gets scheduled away in favor of other processes...). With start = 1, the stopwatch is started, with start = 0, it is stopped and the time difference in sec is returned

double tic_toc_cpu int  start  ) 
 

Stopwatch function for cpu time measurements.

Stopwatch function for easy-to-use time measurements. Counts the CPU ticks where the CPU time of other processes are not taken into account. With start = 1, the stopwatch is started, with start = 0, it is stopped and the time difference in sec is returned

void calc_ellipse double  xc,
double  yc,
double  a,
double  b,
double  phi,
int &  np,
double *&  x,
double *&  y
 

Calculate points of an ellipse.

Calculates the points on a rotated ellipse given by center xc, yc, half axes a, b and angle phi. Returns number of points np and points in Cart. coordinates

void calc_prob_elli_95 double  xc,
double  yc,
double  sxx,
double  syy,
double  sxy,
int &  np,
double *&  x,
double *&  y
 

Calculate points of a 95% error ellipse.

Calculates the points on a 95-iso-probability ellipse given by the bivarate RV with mean xc, yc and covariance matrix sxx, syy, sxy. Returns number of points np and points in Cart. coordinates

void calc_prob_elli_99 double  xc,
double  yc,
double  sxx,
double  syy,
double  sxy,
int &  np,
double *&  x,
double *&  y
 

Calculate points of a 99% error ellipse.

Calculates the points on a 99-iso-probability ellipse given by the bivarate RV with mean xc, yc and covariance matrix sxx, syy, sxy. Returns number of points np and points in Cart. coordinates


Generated on Mon Oct 23 14:09:18 2006 for Tracky by  doxygen 1.4.6