Now let's try to estimate a scalar random constant, such as a "voltage reading" from a source. So let's assume that it has a constant value of aV (volts) , but of of course we some noisy readings above and below a volts. And we assume that the standard deviation of the measurement noise is 0.1 V.
Now let's build our model:
As I promised earlier, we reduced the equations to a very simple form.
• Above all, we have a 1 dimensional signal problem, so every entity in our model is a numerical value, not a matrix.
• We have no such control signal uk, and it's out of the game
• As the signal is a constant value, the constant A
is just 1, because we already know that the next value will be same as
the previous one. We are lucky that we have a constant value in this
example, but even if it were any other linear nature, again we could
easily assume that the value A will be 1.
• The value H = 1, because we know that the
measurement is composed of the state value and some noise. You'll rarely
encounter real life cases that H is different from 1.
And finally, let's assume that we have the following measurement values:
TIME
(ms) |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
VALUE
(V) |
0.39 |
0.50 |
0.48 |
0.29 |
0.25 |
0.32 |
0.34 |
0.48 |
0.41 |
0.45 |
OK, we should start from somewhere, such as k=0. We should find or assume some initial state. Here, we throw out some initial values. Let's assume estimate of X0 = 0, and P0 = 1. Then why didn't we choose P0
= 0 for example? It's simple. If we chose that way, this would mean
that there's no noise in the environment, and this assumption would lead
all the consequent
to be zero(remaining as the initial state). So we choose P0 something other that zero.