08.11.2014 Views

Wireless Sensor and Actuator Networks for Lighting Energy ...

Wireless Sensor and Actuator Networks for Lighting Energy ...

Wireless Sensor and Actuator Networks for Lighting Energy ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The time update equations <strong>and</strong> measurement update equations can be derived as (5.3)<br />

<strong>and</strong> (5.6) respectively.<br />

k<br />

x k +1<br />

= Ax k<br />

k<br />

(5.3)<br />

k<br />

P k +1<br />

= AP k k A T + Q (5.4)<br />

K k +1<br />

= P k k +1<br />

C T CP k<br />

k +1<br />

C T + R<br />

k<br />

x +1 k<br />

k +1<br />

= x k +1<br />

( ) 1 (5.5)<br />

k<br />

+ K k +1 ( y k +1<br />

Cx k +1 ) (5.6)<br />

k<br />

P +1 k<br />

k +1<br />

= ( I K k +1<br />

C)P k +1<br />

(5.7)<br />

where<br />

k<br />

x k +1<br />

is the predicted state of the system <strong>for</strong> time k+1 using measurements up to k;<br />

x k k is the estimated state of the system at time k given measurements up to k;<br />

k<br />

P k +1<br />

k<br />

( )( x k +1<br />

ˆx k +1 ) T<br />

= E<br />

<br />

k<br />

x k +1<br />

ˆx<br />

<br />

k +1<br />

using measurements up to time k;<br />

<br />

<br />

is the error covariance matrix <strong>for</strong> time k+1<br />

P k k<br />

= E<br />

<br />

k<br />

x k<br />

ˆx<br />

<br />

k<br />

k<br />

( )( x k<br />

ˆx k ) T<br />

<br />

<br />

is the error covariance matrix of time k given<br />

measurements up to time k;<br />

K k+1 is the Kalman gain <strong>for</strong> time k+1.<br />

The prediction <strong>and</strong> corresponding prediction error generated by the Kalman<br />

filtering approach on a set of daylight data is shown in Figure 5-3, where the blue solid<br />

line in (a) is the true daylight data sampled every ten seconds <strong>and</strong> the green dashed line<br />

is the prediction. The mean square error (MSE) is 1800.2, which is large because the<br />

Kalman filtering method was started with r<strong>and</strong>om guesses of initial values. The MSE is<br />

22.7 if the initial guesses are not used.<br />

65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!