mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 20:48:04 +00:00
doc headers
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
# Kalman Filter (KALMAN)
|
||||
# Kalman Filter (KALMAN)
|
||||
|
||||
| Property | Value |
|
||||
| ---------------- | -------------------------------- |
|
||||
| **Category** | Filter |
|
||||
| **Inputs** | Source (close) |
|
||||
| **Parameters** | `q` (default 0.01), `r` (default 0.1) |
|
||||
| **Outputs** | Single series (Kalman) |
|
||||
| **Output range** | Tracks input |
|
||||
| **Warmup** | `10` bars |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- The **Kalman Filter** is a recursive algorithm that estimates the state of a dynamic system from a series of incomplete and noisy measurements.
|
||||
- Parameterized by `q` (default 0.01), `r` (default 0.1).
|
||||
- Output range: Tracks input.
|
||||
- Requires `10` bars of warmup before first valid output (IsHot = true).
|
||||
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
|
||||
|
||||
> "Prediction is very difficult, especially if it's about the future." — Niels Bohr. The Kalman Filter doesn't just predict; it optimally estimates the present by balancing what it thinks should happen with what actually happened.
|
||||
|
||||
@@ -108,4 +125,4 @@ Kalman.Calculate(inputs, outputs, q: 0.05, r: 0.5);
|
||||
// Chaining
|
||||
var source = new TSeries();
|
||||
var kf1 = new Kalman(source, q: 0.01, r: 0.1);
|
||||
var kf2 = new Kalman(kf1, q: 0.001, r: 0.1); // Double smoothing
|
||||
var kf2 = new Kalman(kf1, q: 0.001, r: 0.1); // Double smoothing
|
||||
|
||||
Reference in New Issue
Block a user