29.09.2014 Views

Casestudie Breakdown prediction Contell PILOT - Transumo

Casestudie Breakdown prediction Contell PILOT - Transumo

Casestudie Breakdown prediction Contell PILOT - Transumo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

for i = startposition:length(import.data(:,2)-1);<br />

if (import.data(i,6) == 1) & (import.data(i+1,6) == 0);<br />

Dooropeningtime = [Dooropeningtime; [date(i), round((date(i+1)-<br />

date(i))*60*60*24)]];<br />

else<br />

if (import.data(i,6) == 1) & (import.data(i+1,6) == 1);<br />

jumplength = 0;<br />

while (import.data(i+jumplength,6) == 1) & (i + jumplength 0;<br />

DoorProbability = [DoorProbability; [i, OccurenceTemp,<br />

(OccurenceTemp/length(Dooropeningtime(:,1)))*100,<br />

sum(DoorProbability(1:length(DoorProbability(:,1)),3)) +<br />

(OccurenceTemp/length(Dooropeningtime(:,1)))*100]];<br />

end<br />

OccurenceTemp = 0;<br />

end<br />

end<br />

%-----Display Information for a Certain Percentage-----<br />

Percentagelimit = 50;<br />

disp(strcat('Dooropening

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

Saved successfully!

Ooh no, something went wrong!