This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Kalman Filter Extension
This extension provides Kalman filtering capabilities to Siddhi. This allows you to detect outliers of input data. Following are the functions of the Kalman Filter extension.
Kalman Filter function
This function uses measurements observed over time containing noise and other inaccuracies, and produces estimated values for the current measurement using Kalman algorithms. The parameters used are as follows.
measuredValue
: The sequential change in the observed measurement. e.g., 40.695881measuredChangingRate
: The rate at which the measured change is taking place. e.g., The velocity with which the measured value is changed can be 0.003 meters per second.measurementNoiseSD
: The standard deviation of the noise. e.g., 0.01timestamp
: The time stamp of the time at which the measurement was carried out.
Syntax | <double, double>Â kf:kalmanFilter(<double>Â measuredValue) |
---|---|
Extension Type | Function |
Example |
|
Syntax | <double, double>Â kf:kalmanFilter(<double>Â measuredValue, <double>Â measurementNoiseSD) |
---|---|
Extension Type | Function |
Example |
|
Syntax | <double, double>Â kf:kalmanFilter(<double>Â measuredValue, Â <double>Â measuredChangingRate, <double>Â measurementNoiseSD, <long>Â timestamp) |
---|---|
Extension Type | Function |
Example |
|