root/applications/dual/SIDP/transformace/get_next.m
@
917
Revision 862, 315 bytes (checked in by zimamiro, 15 years ago) |
---|
Line | |
---|---|
1 | function [y b P]=get_next(state,u,system) |
2 | %OK |
3 | %prostor hyperstavu - kazdy bod ma souradnice (y, b, P) |
4 | |
5 | %realization |
6 | y=state(1)+system.b*u+system.sigma*randn; |
7 | |
8 | |
9 | %kalman |
10 | K=u*state(3)/(state(3)*u^2+system.sigma^2); |
11 | b=state(2)+K*(y-state(1)-state(2)*u); |
12 | P=(1-K*u)*state(3); |
13 | |
14 | end |
Note: See TracBrowser
for help on using the browser.