Casestudie Breakdown prediction Contell PILOT - Transumo
Casestudie Breakdown prediction Contell PILOT - Transumo
Casestudie Breakdown prediction Contell PILOT - Transumo
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
%Name and location of the source file<br />
unit = 1;<br />
filename = strcat('Channel', int2str(unit), '.csv');<br />
path = 'C:\Dokumente und Einstellungen\Christian\Eigene<br />
Dateien\Dokumente\Studium\Diplomarbeit\Monitoring Data Nijmegen<br />
(Converted)\';<br />
%Import Dataset<br />
import = importdata(strcat(path, filename));<br />
%Create Datevector (as serial date number):<br />
date = datenum(import.textdata(:,1), 'dd-mm-yy HH:MM:SS');<br />
%Import Interpolated Data from Disk<br />
interpolation = importdata(strcat(path, filename, '- Interpolated.txt'));<br />
%Definition of a Second<br />
second = 1/(24*60*60);<br />
%Definition of a Minute (For Performance Reasons)<br />
minute = 1/(60*24);<br />
%Definition of Day- and Nighttime<br />
daybegin = (1/24)*6;<br />
dayend = (1/24)*22;<br />
%Start (Index of the imported data)<br />
%1 = Begin of imported file, add 1440 per Day<br />
start = 1 + 7*1440;<br />
%-----Minima & Maxima-----<br />
%(Use non interpolated data)<br />
%Auxiliary variable<br />
startposition = 1;<br />
while floor(date(startposition) + second) < floor(interpolation(start,1) +<br />
second);<br />
startposition = startposition + 1;<br />
end<br />
jumplength = 0;<br />
%Create Datevector for first column (per day)<br />
dailydate = floor(date(startposition) + second);<br />
%Create Minvector for second column (per day)<br />
minvector = [];<br />
%Create Mindaytimevector for third column (per day)<br />
mindaytime = [];<br />
%Create Minnighttimevector for forth column (per day)<br />
minnighttime = [];<br />
%The same for the maxima table<br />
maxvector = [];<br />
maxdaytime = [];<br />
maxnighttime = [];<br />
for i = startposition:length(date);<br />
if isequal(floor(date(startposition)+ second), floor(date(i) + second));<br />
jumplength = jumplength + 1;<br />
else<br />
A-116