Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

Window Class Reference

#include <window.h>

List of all members.

Public Member Functions

void addEvent (ConnectionEvent event)
int getRecentFailureRate ()
unsigned long getRecentMaxDelay ()
unsigned long getRecentMaxDuration ()
unsigned long getRecentMaxTBCE ()
unsigned long getRecentMeanDelay ()
unsigned long getRecentMeanDuration ()
unsigned long getRecentMeanTBCE ()
unsigned long getTimeBetween ()
void setWindowSize (double window_size)
void updateWindow ()
 Window ()

Private Attributes

int earliest_
std::vector< ConnectionEventevents_
double window_size_

Detailed Description

Definition at line 50 of file window.h.


Constructor & Destructor Documentation

Window::Window (  ) 

Create a new Window.

Definition at line 44 of file window.cpp.


Member Function Documentation

void Window::addEvent ( ConnectionEvent  event  ) 

Add an event to this Window.

Parameters:
event The event

Definition at line 65 of file window.cpp.

int Window::getRecentFailureRate (  ) 

Get the failure rate for the recent window.

Returns:
The recent failure rate

Definition at line 247 of file window.cpp.

unsigned long Window::getRecentMaxDelay (  ) 

Get the max delay for the recent window.

Returns:
The recent max delay

Definition at line 112 of file window.cpp.

unsigned long Window::getRecentMaxDuration (  ) 

Get the max duration for the recent window.

Returns:
The recent max duration

Definition at line 164 of file window.cpp.

unsigned long Window::getRecentMaxTBCE (  ) 

Get the max time between connection events for the recent window.

Returns:
The recent max time between connection events

Definition at line 218 of file window.cpp.

unsigned long Window::getRecentMeanDelay (  ) 

Get the mean delay for the recent window.

Returns:
The recent mean delay

Definition at line 84 of file window.cpp.

unsigned long Window::getRecentMeanDuration (  ) 

Get the mean duration for the recent window.

Returns:
The recent mean duration

Definition at line 142 of file window.cpp.

unsigned long Window::getRecentMeanTBCE (  ) 

Get the mean time between connection events for the recent window.

Returns:
The recent mean time between connection events

Definition at line 188 of file window.cpp.

unsigned long Window::getTimeBetween (  ) 

Get the time between the two most recent connection events.

Returns:
The time between the two most recent events

Definition at line 71 of file window.cpp.

void Window::setWindowSize ( double  window_size  ) 

Set the size of the window.

Parameters:
window_size The window size

Definition at line 46 of file window.cpp.

void Window::updateWindow (  ) 

Update the Window.

Definition at line 51 of file window.cpp.


Member Data Documentation

int Window::earliest_ [private]

The index of the earliest event in the recent window.

Definition at line 57 of file window.h.

std::vector<ConnectionEvent> Window::events_ [private]

The sequence of events.

Definition at line 54 of file window.h.

double Window::window_size_ [private]

The size of the recent window.

Definition at line 60 of file window.h.


The documentation for this class was generated from the following files:
  • engagement_recognition/src/recognition/statistics/window.h
  • engagement_recognition/src/recognition/statistics/window.cpp

engagement_recognition
Author(s): Brett Ponsler (bponsler (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:49 2011