multipred_lib.h File Reference

Public interface for the MultiPred predictor. More...

#include <linux/aquosa/qos_types.h>

Go to the source code of this file.

Functions

qos_rv multipred_set_defaults (void)
 Configures a Multiple Predictor to be used as predictor.
qos_rv multipred_register_lib (void)
 Registration of the submodule with the library.

Detailed Description

Public interface for the MultiPred predictor.

Actually, it is possible to specify more than 1 moving average to be used. This means that the specified number of interleaved sequences of past samples are independently collected and averaged. All sequences have the same length, which is provided by the application. For example, if 2 moving averages each with a size of 3 are specified, and the past samples are denoted with x(.), then the expected value for sample k will be computed as (x(k-2)+x(k-4)+x(k-6))/3 and for sample k+1 as (x(k-1)+x(k-3)+x(k-5))/3.

Forgetting Factor

If a forgetting factor lower than 1 is used, then the samples are averaged by using exponentially reducing weights, with higher weights for recent samples and lower weights for older ones. In the same example as above, with a factor of 0.5, the expected value for sample k is computed approximatively as (0.5714*x(k-2)+0.2857*x(k-4)+0.1429*x(k-6))/3. The used weights always sum to 1.

Definition in file multipred_lib.h.


Function Documentation

qos_rv multipred_register_lib ( void   ) 

Registration of the submodule with the library.

Generated on Mon Aug 2 22:38:48 2010 for qosmgr by  doxygen 1.6.3