SingleStepDurationPredictor Class Reference

#include <SingleStepDuration.h>

Inheritance diagram for SingleStepDurationPredictor:

PredictorAlgorithm List of all members.

Public Member Functions

 SingleStepDurationPredictor (predictorparams &params)
unsigned long getCurrentContextDuration () const
membershiplist_duration getNextContextsWithDuration (unsigned int offset=0) const
membershiplist_duration getNextContextsWithDuration (unsigned long startContext, unsigned long startDuration, unsigned int offset=0) const
virtual void addContexts (const membershiplist *contexts, time_t time)
virtual void addContext (unsigned long contextId, time_t time)
virtual unsigned long getNextContext () const
virtual membershiplist getNextContexts () const
virtual contexttrajectory getContextTrajectory (unsigned int start, unsigned int end) const
virtual unsigned long getContextAt (time_t time) const
virtual membershiplist getContextsAt (time_t time) const
virtual string serialize () const
virtual void unserialize (string data)
virtual string toString () const

Classes

struct  contextinfo

Detailed Description

Todo:
documentation


Constructor & Destructor Documentation

SingleStepDurationPredictor::SingleStepDurationPredictor predictorparams params  ) 
 

Todo:
documentation


Member Function Documentation

void SingleStepDurationPredictor::addContext unsigned long  contextId,
time_t  time
[virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

void SingleStepDurationPredictor::addContexts const membershiplist contexts,
time_t  time
[virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

unsigned long SingleStepDurationPredictor::getContextAt time_t  time  )  const [virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

membershiplist SingleStepDurationPredictor::getContextsAt time_t  time  )  const [virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

contexttrajectory SingleStepDurationPredictor::getContextTrajectory unsigned int  start,
unsigned int  end
const [virtual]
 

Todo:
this has to be enhanced

Implements PredictorAlgorithm.

unsigned long SingleStepDurationPredictor::getCurrentContextDuration  )  const
 

Todo:
documentation

unsigned long SingleStepDurationPredictor::getNextContext  )  const [virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

membershiplist SingleStepDurationPredictor::getNextContexts  )  const [virtual]
 

Todo:
documentation

Implements PredictorAlgorithm.

membershiplist_duration SingleStepDurationPredictor::getNextContextsWithDuration unsigned long  startContext,
unsigned long  startDuration,
unsigned int  offset = 0
const
 

Todo:
if this turns out to be too inefficient, cache it in the normal data structures

Note:
in the general case, this can be seen as a hierarchical classification problem for classifiying peaks and vales

membershiplist_duration SingleStepDurationPredictor::getNextContextsWithDuration unsigned int  offset = 0  )  const
 

Todo:
documentation

string SingleStepDurationPredictor::serialize  )  const [virtual]
 

Serialize a predictors data to a string

Returns:
String representation of the predictor data.

Implements PredictorAlgorithm.

string SingleStepDurationPredictor::toString  )  const [virtual]
 

This is only for testing.

Implements PredictorAlgorithm.

void SingleStepDurationPredictor::unserialize string  data  )  [virtual]
 

Unserialize a predictors data from a string

Parameters:
data String representation of the predictor data.

Implements PredictorAlgorithm.


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 10:20:50 2006 for Intelligence.kdevelop by  doxygen 1.4.6