úÎ3÷1>#      !"(c) 2016 Krzysztof LangnerBSD3 experimentalportableSafeüTimeResolution is for holding time periods which can't easy be translated to number of seconds For example day doesn't always have 86400 and month have different number of days. So if we want to define 1 month period we can't use DiffTime for it. Create Time Resolution from days"Create Time Resolution from months#Create Time Resolution from seconds!Create Time Resolution from yearsReturn Time Series mean #$%&#$%&(c) 2016 Krzysztof LangnerBSD3 experimentalportableSafefData structure for holding Series. Implementation should be hidden so it can be changed in the future#Data points is a time indexed valueGet data point index. Get data point value. Create empty series. %Create series from UTCTime and value. -Create time series from timestamps and values xseriesFromSeconds [1, 2, 3] [41.3, 52.22, 3.0] == Series [DP 1970-01-01 00:00:01 UTC 2.3,DP 1970-01-01 00:00:02 UTC 4.5]  Convert Time Series to the list.Get series values as list.!Get series size. Complexity O(n) 4size (Series [DP 1 41.3, DP 2 52.22, DP 3 3.0]) == 37Return data point value at given index Complexity O(n) ‚valueAt (Series [DP 1 41.3, DP 2 52.22, DP 3 3.0]) 2 == Just 52.22 valueAt (Series [DP 1 41.3, DP 2 52.22, DP 3 3.0]) 5 == Nothing&Return series subset. Complexity O(n) ˜slice (Series [DP 1 41.3, DP 2 52.22, DP 3 3.0]) 2 3 == Series [DP 2 52.22, DP 3 3.0] slice (Series [DP 1 41.3, DP 2 52.22, DP 3 3.0]) 5 23 == Series [][Apply rolling window to create a new Series. Rolling window is also called Sliding Window.Resample Series.'Resample based on list() .List of index value given as number of seconds List of valueCreated Series Index position Input SeriesValue at given indexStart time (inclusive)End time (inclusive) Input series Sliced Series Window sizeFunction applied to each window Input SeriesConverted Series*+ Starting timeResampling resolution Input seriesResampled series',-./  () *+',-./(c) 2016 Krzysztof LangnerBSD3 experimentalportableSafe;Session is a time range of a single event Some examples:Session with web application Rain event'Find all session in a given Time Series012012(c) 2016 Krzysztof LangnerBSD3 experimentalportableSafeReturn Time Series meanCalculate Time Series variance(Calculate Time Series Standard Deviation(c) 2016 Krzysztof LangnerBSD3 experimentalportableNone‡Load data from CSV file and create Time Series from it As a first argument provide function to convert date from ByteString to UTCTime(c) 2016 Krzysztof LangnerBSD3 experimentalportableNoneTDefine if csv file has header"‡Load data from CSV file and create Time Series from it As a first argument provide function to convert date from ByteString to UTCTime !"34 !" !"34None  !"   !"5      !"#$%&&'()*+,-./0123456789:×eries-0.4.1-M2iPd0udDO71ZJdHTrtmwData.TimeSeriesData.TimeSeries.SessionsData.TimeSeries.TimeData.TimeSeries.SeriesData.TimeSeries.StatsData.TimeSeries.IO.CSVWriterData.TimeSeries.IO.CSVReaderTimeResolutiondaysmonthssecondsyearsnextTimeSeries DataPointdpIndexdpValue emptySeriesseriestsSeriestoListvaluessizevalueAtslicerollingresampleSession sessionStart sessionEndfind $fEqSession $fShowSessionmeanvariancestdsaveCSV HasHeaderNoHeaderloadCSVYearsMonthsDaysSeconds resample'DPwindows isInTimeRange$fFoldableSeries$fFunctorSeries$fFoldableDataPoint$fFunctorDataPoint findChangescnvjoin toCSVHeader parseLine