Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fetish.toolkit
Class Kalman  view Kalman download Kalman.java

java.lang.Object
  extended bycom.fetish.toolkit.Kalman

public class Kalman
extends java.lang.Object

Class that implements a modified Kalman filter. The Kalman filter is a discrete predictive filter for signals with a white noise which are measured through a noisy procedure. The default Kalman filter behavior has been modified to fit the network model. It is used by the FetishLeaseRenewalManager to get an estimation of the network delays to ensure Fetish lease renewal.


Field Summary
private  double K
           
private  double P
           
private  double Q
           
private  double tau
           
private  long tprev
           
private  double x
           
 
Constructor Summary
Kalman(double tau)
           
Kalman(double tau, double Q)
           
Kalman(double tau, double Q, double P)
           
 
Method Summary
 double forecast(double z, long t)
           
 double forecastEnvelope(double z, long t)
           
 double getError()
           
 double getForecast()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

private double x

K

private double K

tau

private double tau

tprev

private long tprev

P

private double P

Q

private double Q
Constructor Detail

Kalman

public Kalman(double tau)

Kalman

public Kalman(double tau,
              double Q)

Kalman

public Kalman(double tau,
              double Q,
              double P)
Method Detail

getForecast

public double getForecast()

getError

public double getError()

forecast

public double forecast(double z,
                       long t)

forecastEnvelope

public double forecastEnvelope(double z,
                               long t)