source: branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs @ 7100

Last change on this file since 7100 was 7100, checked in by gkronber, 9 years ago

#1081 worked on multi-variate time series prognosis

File size: 32.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.IO;
25using System.Linq;
26using HeuristicLab.Common;
27using HeuristicLab.Core;
28using HeuristicLab.Data;
29using HeuristicLab.Parameters;
30using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
31
32namespace HeuristicLab.Problems.DataAnalysis {
33  [StorableClass]
34  [Item("TimeSeriesPrognosisProblemData", "Represents an item containing all data defining a time series prognosis problem.")]
35  public class TimeSeriesPrognosisProblemData : DataAnalysisProblemData, ITimeSeriesPrognosisProblemData {
36    protected const string TargetVariablesParameterName = "TargetVariables";
37
38    #region default data
39    private static double[,] mackey_glass_17 = new double[,] {
40{9.0000000e-01},
41{9.0000000e-01},
42{9.0000000e-01},
43{9.4136145e-01},
44{1.1188041e+00},
45{1.2161867e+00},
46{1.2476827e+00},
47{1.0067861e+00},
48{7.1297054e-01},
49{5.0349420e-01},
50{5.8392542e-01},
51{9.4327347e-01},
52{1.0178784e+00},
53{1.0346794e+00},
54{1.1640420e+00},
55{1.0670009e+00},
56{1.0026658e+00},
57{7.7000347e-01},
58{7.0782984e-01},
59{7.9370192e-01},
60{1.0558440e+00},
61{1.2000510e+00},
62{1.2998549e+00},
63{1.1857500e+00},
64{8.4250325e-01},
65{5.5885374e-01},
66{4.2572016e-01},
67{7.5043060e-01},
68{9.7291951e-01},
69{9.3785503e-01},
70{1.0653587e+00},
71{1.1355961e+00},
72{1.1533842e+00},
73{1.0678134e+00},
74{8.1349649e-01},
75{6.6246660e-01},
76{6.2210481e-01},
77{9.3890430e-01},
78{1.1287058e+00},
79{1.1699535e+00},
80{1.2412759e+00},
81{9.8090748e-01},
82{7.3311051e-01},
83{5.2596003e-01},
84{6.3134850e-01},
85{9.7849655e-01},
86{1.0578901e+00},
87{1.0888001e+00},
88{1.1681297e+00},
89{9.9896471e-01},
90{8.7928027e-01},
91{6.6864116e-01},
92{7.3694626e-01},
93{9.7850487e-01},
94{1.1571565e+00},
95{1.2440406e+00},
96{1.2532851e+00},
97{9.3967388e-01},
98{6.5403177e-01},
99{4.5549437e-01},
100{6.4110939e-01},
101{9.6727507e-01},
102{9.8419122e-01},
103{1.0332443e+00},
104{1.1440570e+00},
105{1.0922307e+00},
106{1.0485820e+00},
107{8.0447560e-01},
108{7.1465526e-01},
109{7.1296010e-01},
110{9.9300973e-01},
111{1.1766813e+00},
112{1.2618288e+00},
113{1.2517022e+00},
114{9.2078170e-01},
115{6.2369710e-01},
116{4.3562308e-01},
117{6.4988558e-01},
118{9.5895791e-01},
119{9.5866122e-01},
120{1.0183775e+00},
121{1.1415533e+00},
122{1.1289579e+00},
123{1.1022163e+00},
124{8.4414928e-01},
125{6.9891813e-01},
126{6.2493643e-01},
127{9.0049230e-01},
128{1.1246569e+00},
129{1.1850486e+00},
130{1.2646400e+00},
131{1.0193893e+00},
132{7.3830722e-01},
133{5.1921750e-01},
134{5.6836076e-01},
135{9.3609361e-01},
136{1.0324202e+00},
137{1.0360676e+00},
138{1.1675966e+00},
139{1.0504944e+00},
140{9.8129158e-01},
141{7.5798016e-01},
142{7.1660079e-01},
143{8.3950658e-01},
144{1.0870027e+00},
145{1.2170776e+00},
146{1.3123779e+00},
147{1.1361782e+00},
148{7.9337369e-01},
149{5.2230472e-01},
150{4.3857925e-01},
151{8.0873950e-01},
152{9.7422631e-01},
153{9.3291515e-01},
154{1.0947530e+00},
155{1.1335086e+00},
156{1.1645714e+00},
157{1.0315895e+00},
158{7.9058261e-01},
159{6.3878936e-01},
160{6.4385427e-01},
161{9.7290237e-01},
162{1.1330941e+00},
163{1.1738960e+00},
164{1.2210669e+00},
165{9.4813374e-01},
166{7.1548595e-01},
167{5.2046031e-01},
168{6.8100333e-01},
169{1.0072944e+00},
170{1.0641199e+00},
171{1.1194312e+00},
172{1.1522817e+00},
173{9.7118023e-01},
174{8.2966445e-01},
175{6.3876024e-01},
176{7.6770138e-01},
177{1.0325752e+00},
178{1.1660632e+00},
179{1.2543878e+00},
180{1.1956003e+00},
181{8.7571542e-01},
182{6.1252082e-01},
183{4.5699619e-01},
184{7.4030148e-01},
185{1.0017485e+00},
186{9.8958385e-01},
187{1.0949833e+00},
188{1.1249612e+00},
189{1.0658962e+00},
190{9.5636335e-01},
191{7.4498806e-01},
192{7.2563393e-01},
193{8.3530455e-01},
194{1.0977307e+00},
195{1.2314926e+00},
196{1.3167422e+00},
197{1.1172604e+00},
198{7.6900341e-01},
199{5.0549771e-01},
200{4.4450990e-01},
201{8.2808038e-01},
202{9.6930396e-01},
203{9.2772189e-01},
204{1.1010458e+00},
205{1.1366939e+00},
206{1.1770457e+00},
207{1.0282839e+00},
208{7.8657093e-01},
209{6.2340354e-01},
210{6.3476140e-01},
211{9.6941037e-01},
212{1.1224823e+00},
213{1.1576217e+00},
214{1.2147442e+00},
215{9.5631199e-01},
216{7.3947874e-01},
217{5.4187646e-01},
218{6.8681641e-01},
219{1.0131445e+00},
220{1.0865854e+00},
221{1.1414849e+00},
222{1.1594630e+00},
223{9.4411600e-01},
224{7.7794034e-01},
225{5.9741518e-01},
226{7.7225037e-01},
227{1.0587360e+00},
228{1.1485933e+00},
229{1.2344562e+00},
230{1.1458853e+00},
231{8.5415118e-01},
232{6.2127481e-01},
233{4.9756097e-01},
234{8.0931406e-01},
235{1.0430891e+00},
236{1.0367506e+00},
237{1.1608048e+00},
238{1.0902522e+00},
239{9.6945804e-01},
240{7.9607346e-01},
241{6.7035674e-01},
242{8.2493000e-01},
243{1.0685565e+00},
244{1.1912458e+00},
245{1.2916937e+00},
246{1.1585237e+00},
247{8.2653804e-01},
248{5.5624667e-01},
249{4.4364773e-01},
250{7.8679896e-01},
251{9.8947432e-01},
252{9.5587476e-01},
253{1.0976735e+00},
254{1.1247419e+00},
255{1.1220470e+00},
256{9.9754667e-01},
257{7.7406653e-01},
258{6.7630712e-01},
259{7.2445263e-01},
260{1.0303591e+00},
261{1.1801427e+00},
262{1.2506686e+00},
263{1.1989987e+00},
264{8.7114663e-01},
265{6.0602798e-01},
266{4.5163741e-01},
267{7.3553573e-01},
268{9.9456302e-01},
269{9.8098646e-01},
270{1.0857031e+00},
271{1.1289641e+00},
272{1.0828069e+00},
273{9.8224963e-01},
274{7.5966277e-01},
275{7.1111527e-01},
276{7.8645769e-01},
277{1.0673541e+00},
278{1.2116816e+00},
279{1.2990734e+00},
280{1.1657704e+00},
281{8.1779454e-01},
282{5.4428063e-01},
283{4.3047549e-01},
284{7.7832590e-01},
285{9.7551443e-01},
286{9.3705618e-01},
287{1.0807206e+00},
288{1.1339189e+00},
289{1.1551319e+00},
290{1.0473610e+00},
291{8.0021464e-01},
292{6.5377513e-01},
293{6.3810292e-01},
294{9.6140773e-01},
295{1.1354401e+00},
296{1.1782311e+00},
297{1.2323246e+00},
298{9.5811452e-01},
299{7.1400985e-01},
300{5.1434848e-01},
301{6.5876782e-01},
302{9.9374878e-01},
303{1.0532057e+00},
304{1.0987291e+00},
305{1.1569941e+00},
306{9.9327584e-01},
307{8.7055783e-01},
308{6.6607204e-01},
309{7.5154249e-01},
310{9.9147904e-01},
311{1.1618652e+00},
312{1.2531013e+00},
313{1.2445235e+00},
314{9.2459418e-01},
315{6.3924685e-01},
316{4.4899067e-01},
317{6.5946924e-01},
318{9.7165260e-01},
319{9.7791817e-01},
320{1.0391898e+00},
321{1.1412631e+00},
322{1.0983393e+00},
323{1.0493420e+00},
324{8.0399406e-01},
325{7.0992449e-01},
326{7.0350356e-01},
327{9.8952236e-01},
328{1.1734521e+00},
329{1.2538876e+00},
330{1.2508500e+00},
331{9.2423636e-01},
332{6.3070030e-01},
333{4.4136962e-01},
334{6.4946966e-01},
335{9.6197955e-01},
336{9.6606332e-01},
337{1.0237953e+00},
338{1.1421522e+00},
339{1.1183774e+00},
340{1.0857179e+00},
341{8.3157725e-01},
342{7.0250588e-01},
343{6.4917325e-01},
344{9.2959329e-01},
345{1.1407976e+00},
346{1.2080261e+00},
347{1.2684960e+00},
348{9.9122930e-01},
349{7.0220017e-01},
350{4.8816416e-01},
351{5.8586111e-01},
352{9.4668329e-01},
353{1.0087590e+00},
354{1.0232927e+00},
355{1.1559444e+00},
356{1.0720927e+00},
357{1.0286336e+00},
358{7.9460252e-01},
359{7.2093651e-01},
360{7.6292167e-01},
361{1.0248985e+00},
362{1.1929944e+00},
363{1.2920208e+00},
364{1.2293181e+00},
365{8.8290244e-01},
366{5.8527613e-01},
367{4.1855360e-01},
368{6.9074767e-01},
369{9.5977708e-01},
370{9.3601019e-01},
371{1.0268467e+00},
372{1.1397909e+00},
373{1.1581327e+00},
374{1.1205956e+00},
375{8.5280669e-01},
376{6.7763483e-01},
377{5.7983286e-01},
378{8.6429914e-01},
379{1.0976939e+00},
380{1.1367408e+00},
381{1.2374931e+00},
382{1.0493382e+00},
383{8.0588138e-01},
384{5.9127581e-01},
385{5.7929225e-01},
386{9.2472931e-01},
387{1.0849831e+00},
388{1.0943246e+00},
389{1.2041235e+00},
390{1.0091917e+00},
391{8.4987188e-01},
392{6.3876182e-01},
393{6.7747918e-01},
394{9.7202288e-01},
395{1.1405471e+00},
396{1.1943368e+00},
397{1.2338428e+00},
398{9.4462558e-01},
399{6.9738430e-01},
400{4.9856007e-01},
401{6.6823589e-01},
402{9.9611375e-01},
403{1.0393748e+00},
404{1.0920087e+00},
405{1.1489492e+00},
406{1.0066576e+00},
407{8.9589007e-01},
408{6.8845995e-01},
409{7.5294149e-01},
410{9.6184563e-01},
411{1.1555071e+00},
412{1.2567316e+00},
413{1.2751778e+00},
414{9.6335246e-01},
415{6.5830948e-01},
416{4.4799275e-01},
417{5.9888825e-01},
418{9.4430988e-01},
419{9.6837958e-01},
420{9.9677549e-01},
421{1.1434629e+00},
422{1.1210684e+00},
423{1.1148356e+00},
424{8.6401556e-01},
425{7.1420118e-01},
426{6.2999725e-01},
427{8.7537864e-01},
428{1.1167941e+00},
429{1.1896694e+00},
430{1.2722030e+00},
431{1.0454715e+00},
432{7.4997564e-01},
433{5.2383173e-01},
434{5.3664145e-01},
435{9.1117041e-01},
436{1.0244044e+00},
437{1.0151287e+00},
438{1.1633675e+00},
439{1.0695966e+00},
440{1.0183575e+00},
441{8.0087884e-01},
442{7.1535296e-01},
443{7.8553095e-01},
444{1.0319822e+00},
445{1.1937155e+00},
446{1.2977947e+00},
447{1.2217806e+00},
448{8.7524512e-01},
449{5.7851885e-01},
450{4.1763620e-01},
451{7.0155638e-01},
452{9.6135267e-01},
453{9.3393602e-01},
454{1.0323424e+00},
455{1.1394608e+00},
456{1.1605598e+00},
457{1.1161968e+00},
458{8.4854339e-01},
459{6.7338626e-01},
460{5.7982826e-01},
461{8.7043086e-01},
462{1.0990834e+00},
463{1.1357404e+00},
464{1.2369383e+00},
465{1.0441753e+00},
466{8.0417958e-01},
467{5.9002711e-01},
468{5.8533894e-01},
469{9.3051649e-01},
470{1.0871279e+00},
471{1.0984983e+00},
472{1.2044155e+00},
473{1.0039892e+00},
474{8.4210523e-01},
475{6.3124655e-01},
476{6.8055115e-01},
477{9.7935183e-01},
478{1.1399170e+00},
479{1.1935307e+00},
480{1.2269029e+00},
481{9.3758049e-01},
482{6.9527243e-01},
483{5.0033084e-01},
484{6.8171448e-01},
485{1.0034848e+00},
486{1.0435853e+00},
487{1.1027381e+00},
488{1.1454200e+00},
489{9.9636446e-01},
490{8.7575610e-01},
491{6.7572455e-01},
492{7.6161436e-01},
493{9.8751885e-01},
494{1.1634852e+00},
495{1.2613366e+00},
496{1.2527158e+00},
497{9.3041078e-01},
498{6.3648886e-01},
499{4.4289908e-01},
500{6.4543043e-01},
501{9.6271252e-01},
502{9.6856037e-01},
503{1.0237816e+00},
504{1.1419384e+00},
505{1.1143808e+00},
506{1.0817980e+00},
507{8.2952128e-01},
508{7.0565231e-01},
509{6.5745758e-01},
510{9.3688510e-01},
511{1.1457239e+00},
512{1.2160319e+00},
513{1.2696485e+00},
514{9.8373294e-01},
515{6.9141844e-01},
516{4.7910268e-01},
517{5.8995166e-01},
518{9.4754885e-01},
519{1.0004197e+00},
520{1.0182334e+00},
521{1.1527974e+00},
522{1.0815601e+00},
523{1.0462772e+00},
524{8.0856012e-01},
525{7.2009150e-01},
526{7.3360533e-01},
527{9.9726771e-01},
528{1.1799228e+00},
529{1.2752553e+00},
530{1.2545993e+00},
531{9.1834232e-01},
532{6.1478702e-01},
533{4.2718988e-01},
534{6.4709630e-01},
535{9.5321724e-01},
536{9.4745071e-01},
537{1.0082615e+00},
538{1.1408283e+00},
539{1.1449070e+00},
540{1.1287695e+00},
541{8.6506953e-01},
542{6.9506068e-01},
543{5.9077914e-01},
544{8.5235412e-01},
545{1.0981812e+00},
546{1.1502068e+00},
547{1.2457878e+00},
548{1.0606248e+00},
549{7.9743949e-01},
550{5.7871635e-01},
551{5.5597309e-01},
552{9.0976389e-01},
553{1.0678545e+00},
554{1.0678466e+00},
555{1.1926843e+00},
556{1.0306506e+00},
557{9.0068600e-01},
558{6.8968565e-01},
559{6.8293693e-01},
560{9.2938386e-01},
561{1.1389931e+00},
562{1.2107723e+00},
563{1.2742112e+00},
564{9.9571305e-01},
565{7.0900966e-01},
566{4.8711002e-01},
567{5.7843327e-01},
568{9.4262722e-01},
569{1.0068885e+00},
570{1.0174671e+00},
571{1.1549847e+00},
572{1.0752383e+00},
573{1.0382561e+00},
574{8.0493588e-01},
575{7.2297438e-01},
576{7.5109199e-01},
577{1.0099650e+00},
578{1.1869526e+00},
579{1.2859723e+00},
580{1.2455314e+00},
581{9.0247113e-01},
582{5.9968946e-01},
583{4.2056794e-01},
584{6.6467784e-01},
585{9.5461231e-01},
586{9.3926954e-01},
587{1.0128964e+00},
588{1.1403075e+00},
589{1.1549599e+00},
590{1.1335031e+00},
591{8.6584651e-01},
592{6.8689154e-01},
593{5.7663890e-01},
594{8.4338430e-01},
595{1.0904343e+00},
596{1.1347127e+00},
597{1.2344704e+00},
598{1.0665197e+00},
599{8.1831436e-01},
600{6.0374950e-01},
601{5.6609914e-01},
602{9.0609488e-01},
603{1.0837698e+00},
604{1.0903349e+00},
605{1.2068005e+00},
606{1.0215332e+00},
607{8.5834739e-01},
608{6.4797779e-01},
609{6.6278967e-01},
610{9.5567807e-01},
611{1.1370612e+00},
612{1.1868501e+00},
613{1.2426235e+00},
614{9.6133342e-01},
615{7.1189926e-01},
616{5.0582127e-01},
617{6.4642134e-01},
618{9.8585814e-01},
619{1.0428580e+00},
620{1.0831242e+00},
621{1.1568123e+00},
622{1.0097872e+00},
623{9.0412446e-01},
624{6.9144384e-01},
625{7.4452934e-01},
626{9.5158341e-01},
627{1.1512270e+00},
628{1.2509608e+00},
629{1.2807229e+00},
630{9.7601316e-01},
631{6.6959369e-01},
632{4.5362019e-01},
633{5.8397806e-01},
634{9.3866865e-01},
635{9.7211974e-01},
636{9.9154526e-01},
637{1.1440232e+00},
638{1.1182310e+00},
639{1.1159711e+00},
640{8.6902975e-01},
641{7.1839537e-01},
642{6.3437176e-01},
643{8.7058758e-01},
644{1.1155207e+00},
645{1.1929730e+00},
646{1.2750340e+00},
647{1.0511137e+00},
648{7.5075715e-01},
649{5.2249794e-01},
650{5.2857771e-01},
651{9.0479637e-01},
652{1.0201490e+00},
653{1.0078239e+00},
654{1.1602784e+00},
655{1.0762699e+00},
656{1.0328279e+00},
657{8.1754050e-01},
658{7.1739458e-01},
659{7.6521302e-01},
660{1.0063562e+00},
661{1.1829441e+00},
662{1.2880301e+00},
663{1.2505618e+00},
664{9.0963666e-01},
665{6.0373594e-01},
666{4.2059572e-01},
667{6.5552332e-01},
668{9.5216646e-01},
669{9.3915492e-01},
670{1.0073402e+00},
671{1.1402595e+00},
672{1.1555473e+00},
673{1.1400569e+00},
674{8.7240707e-01},
675{6.8972093e-01},
676{5.7304964e-01},
677{8.3155186e-01},
678{1.0852244e+00},
679{1.1309096e+00},
680{1.2300408e+00},
681{1.0756716e+00},
682{8.2836037e-01},
683{6.1503305e-01},
684{5.6289537e-01},
685{8.9596963e-01},
686{1.0857176e+00},
687{1.0933045e+00},
688{1.2103223e+00},
689{1.0266092e+00},
690{8.5466111e-01},
691{6.4485312e-01},
692{6.5137619e-01},
693{9.5039035e-01},
694{1.1326982e+00},
695{1.1771304e+00},
696{1.2406618e+00},
697{9.6686921e-01},
698{7.2402007e-01},
699{5.1657512e-01},
700{6.4610863e-01},
701{9.8716024e-01},
702{1.0536774e+00},
703{1.0920775e+00},
704{1.1611436e+00},
705{9.9694608e-01},
706{8.7913715e-01},
707{6.7096137e-01},
708{7.4646346e-01},
709{9.8211586e-01},
710{1.1596887e+00},
711{1.2506463e+00},
712{1.2528610e+00},
713{9.3574881e-01},
714{6.4708026e-01},
715{4.5058777e-01},
716{6.4326949e-01},
717{9.6585146e-01},
718{9.7825812e-01},
719{1.0299115e+00},
720{1.1430802e+00},
721{1.1005190e+00},
722{1.0609387e+00},
723{8.1379890e-01},
724{7.1122428e-01},
725{6.9156533e-01},
726{9.7259709e-01},
727{1.1655186e+00},
728{1.2452699e+00},
729{1.2619116e+00},
730{9.4482161e-01},
731{6.4801701e-01},
732{4.4907240e-01},
733{6.2485209e-01},
734{9.5564190e-01},
735{9.7288683e-01},
736{1.0147847e+00},
737{1.1443809e+00},
738{1.1120870e+00},
739{1.0877802e+00},
740{8.3639407e-01},
741{7.0935594e-01},
742{6.5684224e-01},
743{9.2695542e-01},
744{1.1418485e+00},
745{1.2155793e+00},
746{1.2744439e+00},
747{9.9526406e-01},
748{6.9858658e-01},
749{4.8225678e-01},
750{5.7551868e-01},
751{9.3953863e-01},
752{1.0000682e+00},
753{1.0105854e+00},
754{1.1531271e+00},
755{1.0852683e+00},
756{1.0562598e+00},
757{8.2024340e-01},
758{7.2070006e-01},
759{7.2200828e-01},
760{9.7907123e-01},
761{1.1713283e+00},
762{1.2668075e+00},
763{1.2685662e+00},
764{9.4120299e-01},
765{6.3302397e-01},
766{4.3403723e-01},
767{6.1877701e-01},
768{9.4622798e-01},
769{9.5365292e-01},
770{9.9618857e-01},
771{1.1414351e+00},
772{1.1389950e+00},
773{1.1349258e+00},
774{8.7553815e-01},
775{7.0489527e-01},
776{5.9575516e-01},
777{8.3938416e-01},
778{1.0946321e+00},
779{1.1549299e+00},
780{1.2478627e+00},
781{1.0727433e+00},
782{8.0007945e-01},
783{5.7879852e-01},
784{5.4142544e-01},
785{8.9584895e-01},
786{1.0605852e+00},
787{1.0558398e+00},
788{1.1875826e+00},
789{1.0434789e+00},
790{9.2439267e-01},
791{7.1612758e-01},
792{6.8218882e-01},
793{9.0102182e-01},
794{1.1275375e+00},
795{1.2109971e+00},
796{1.2892493e+00},
797{1.0360675e+00},
798{7.3214326e-01},
799{4.9603224e-01},
800{5.2859768e-01},
801{9.0839931e-01},
802{9.9967438e-01},
803{9.8761933e-01},
804{1.1495807e+00},
805{1.0955451e+00},
806{1.0837190e+00},
807{8.6306190e-01},
808{7.2864571e-01},
809{6.9570443e-01},
810{9.1466309e-01},
811{1.1416079e+00},
812{1.2423455e+00},
813{1.2979661e+00},
814{1.0158501e+00},
815{6.9306586e-01},
816{4.6540187e-01},
817{5.3429520e-01},
818{9.1176535e-01},
819{9.7214664e-01},
820{9.6587930e-01},
821{1.1395672e+00},
822{1.1254350e+00},
823{1.1438751e+00},
824{9.1306791e-01},
825{7.3239337e-01},
826{6.1798523e-01},
827{7.9591503e-01},
828{1.0777494e+00},
829{1.1677842e+00},
830{1.2502967e+00},
831{1.1151699e+00},
832{8.1642087e-01},
833{5.8442000e-01},
834{5.0055038e-01},
835{8.4650946e-01},
836{1.0385843e+00},
837{1.0234916e+00},
838{1.1635033e+00},
839{1.0803258e+00},
840{9.9050756e-01},
841{8.0394987e-01},
842{6.9093478e-01},
843{8.1258118e-01},
844{1.0510811e+00},
845{1.1928214e+00},
846{1.2964341e+00},
847{1.1903709e+00},
848{8.5006682e-01},
849{5.6609363e-01},
850{4.2789827e-01},
851{7.4508986e-01},
852{9.7546850e-01},
853{9.4304490e-01},
854{1.0657257e+00},
855{1.1344752e+00},
856{1.1448680e+00},
857{1.0604924e+00},
858{8.0946851e-01},
859{6.6897242e-01},
860{6.3751840e-01},
861{9.5203759e-01},
862{1.1383222e+00},
863{1.1857882e+00},
864{1.2429358e+00},
865{9.6640521e-01},
866{7.0943525e-01},
867{5.0606242e-01},
868{6.3814517e-01},
869{9.8050653e-01},
870{1.0400252e+00},
871{1.0768445e+00},
872{1.1586073e+00},
873{1.0171349e+00},
874{9.1652446e-01},
875{7.0015343e-01},
876{7.3826470e-01},
877{9.3314098e-01},
878{1.1436325e+00},
879{1.2463125e+00},
880{1.2921798e+00},
881{1.0004180e+00},
882{6.8706555e-01},
883{4.6091370e-01},
884{5.5360860e-01},
885{9.2333217e-01},
886{9.7324082e-01},
887{9.7644851e-01},
888{1.1422917e+00},
889{1.1211038e+00},
890{1.1312591e+00},
891{8.9312684e-01},
892{7.2669146e-01},
893{6.2634170e-01},
894{8.3089176e-01},
895{1.0962164e+00},
896{1.1808500e+00},
897{1.2661262e+00},
898{1.0871224e+00},
899{7.8484345e-01},
900{5.5241172e-01},
901{5.0720010e-01},
902{8.7433135e-01},
903{1.0293171e+00},
904{1.0110677e+00},
905{1.1612664e+00},
906{1.0781429e+00},
907{1.0169296e+00},
908{8.1818733e-01},
909{7.0825239e-01},
910{7.8555548e-01},
911{1.0202406e+00},
912{1.1861871e+00},
913{1.2927766e+00},
914{1.2345608e+00},
915{8.9196638e-01},
916{5.9165129e-01},
917{4.1993302e-01},
918{6.8133251e-01},
919{9.5902336e-01},
920{9.3840491e-01},
921{1.0229760e+00},
922{1.1397483e+00},
923{1.1549910e+00},
924{1.1221729e+00},
925{8.5521466e-01},
926{6.8171599e-01},
927{5.8253142e-01},
928{8.6249156e-01},
929{1.0984374e+00},
930{1.1402897e+00},
931{1.2397438e+00},
932{1.0509675e+00},
933{8.0267914e-01},
934{5.8719202e-01},
935{5.7423177e-01},
936{9.2225657e-01},
937{1.0807070e+00},
938{1.0878295e+00},
939{1.2011335e+00},
940{1.0137713e+00},
941{8.6200406e-01},
942{6.5063788e-01},
943{6.7962388e-01},
944{9.6415425e-01},
945{1.1427244e+00},
946{1.2001432e+00},
947{1.2435862e+00},
948{9.5255718e-01},
949{6.9548843e-01},
950{4.9228114e-01},
951{6.4975070e-01},
952{9.8475452e-01},
953{1.0290189e+00},
954{1.0735305e+00},
955{1.1514964e+00},
956{1.0265685e+00},
957{9.3450570e-01},
958{7.1609613e-01},
959{7.4066401e-01},
960{9.0672547e-01},
961{1.1323663e+00},
962{1.2457251e+00},
963{1.3080265e+00},
964{1.0368462e+00},
965{7.0922252e-01},
966{4.6922499e-01},
967{5.0971665e-01},
968{8.9530783e-01},
969{9.6897032e-01},
970{9.5144881e-01},
971{1.1327578e+00},
972{1.1313397e+00},
973{1.1615669e+00},
974{9.4490349e-01},
975{7.4435097e-01},
976{6.0879030e-01},
977{7.4201167e-01},
978{1.0475442e+00},
979{1.1489683e+00},
980{1.2189341e+00},
981{1.1527726e+00},
982{8.6373864e-01},
983{6.3765290e-01},
984{5.0482479e-01},
985{7.9976041e-01},
986{1.0463811e+00},
987{1.0486243e+00},
988{1.1650654e+00},
989{1.0937932e+00},
990{9.5242412e-01},
991{7.7776887e-01},
992{6.5337298e-01},
993{8.3412675e-01},
994{1.0842165e+00},
995{1.1876958e+00},
996{1.2860798e+00},
997{1.1277640e+00},
998{8.0705117e-01},
999{5.4933954e-01},
1000{4.6409423e-01},
1001{8.2407983e-01},
1002{1.0029510e+00},
1003{9.7182671e-01},
1004{1.1248927e+00},
1005{1.1108497e+00},
1006{1.0927585e+00},
1007{9.3345740e-01},
1008{7.4563087e-01},
1009{6.9815644e-01},
1010{8.2911579e-01},
1011{1.0975320e+00},
1012{1.2225208e+00},
1013{1.3041931e+00},
1014{1.1107874e+00},
1015{7.6954799e-01},
1016{5.1381033e-01},
1017{4.5656108e-01},
1018{8.3803614e-01},
1019{9.8059578e-01},
1020{9.4343837e-01},
1021{1.1139527e+00},
1022{1.1272959e+00},
1023{1.1505047e+00},
1024{9.8802150e-01},
1025{7.6846480e-01},
1026{6.4059710e-01},
1027{7.0404249e-01},
1028{1.0213995e+00},
1029{1.1571646e+00},
1030{1.2167098e+00},
1031{1.1922700e+00},
1032{8.8891917e-01},
1033{6.4610240e-01},
1034{4.8423413e-01},
1035{7.4237703e-01},
1036{1.0194305e+00},
1037{1.0263817e+00},
1038{1.1223002e+00},
1039{1.1218476e+00},
1040{1.0047937e+00},
1041{8.6916869e-01},
1042{6.8761628e-01},
1043{7.7272726e-01},
1044{9.8680374e-01},
1045{1.1662112e+00},
1046{1.2718586e+00},
1047{1.2599891e+00},
1048{9.3374084e-01},
1049{6.3070745e-01},
1050{4.3512068e-01},
1051{6.3400337e-01},
1052{9.5387123e-01},
1053{9.5725486e-01},
1054{1.0083783e+00},
1055{1.1414776e+00},
1056{1.1320033e+00},
1057{1.1156485e+00},
1058{8.5730304e-01},
1059{7.0257566e-01},
1060{6.1385070e-01},
1061{8.7645096e-01},
1062{1.1135407e+00},
1063{1.1743915e+00},
1064{1.2617479e+00},
1065{1.0416530e+00},
1066{7.6141001e-01},
1067{5.3947941e-01},
1068{5.5263397e-01},
1069{9.2079176e-01},
1070{1.0423877e+00},
1071{1.0391593e+00},
1072{1.1741828e+00},
1073{1.0475738e+00},
1074{9.6528247e-01},
1075{7.4824631e-01},
1076{7.0765109e-01},
1077{8.6076413e-01},
1078{1.1015853e+00},
1079{1.2180296e+00},
1080{1.3087379e+00},
1081{1.1050105e+00},
1082{7.7144492e-01},
1083{5.1073157e-01},
1084{4.5959721e-01},
1085{8.4138746e-01},
1086{9.8058403e-01},
1087{9.4385625e-01},
1088{1.1155190e+00},
1089{1.1265194e+00},
1090{1.1505430e+00},
1091{9.8480260e-01},
1092{7.6753361e-01},
1093{6.3998096e-01},
1094{7.0790430e-01},
1095{1.0242649e+00},
1096{1.1582776e+00},
1097{1.2187970e+00},
1098{1.1895283e+00},
1099{8.8519343e-01},
1100{6.4254017e-01},
1101{4.8336487e-01},
1102{7.4700679e-01},
1103{1.0202300e+00},
1104{1.0250636e+00},
1105{1.1237335e+00},
1106{1.1201468e+00},
1107{1.0057497e+00},
1108{8.6867488e-01},
1109{6.8876595e-01},
1110{7.7314271e-01},
1111{9.8646241e-01},
1112{1.1663720e+00},
1113{1.2725046e+00},
1114{1.2607985e+00},
1115{9.3432428e-01},
1116{6.3055002e-01},
1117{4.3462242e-01},
1118{6.3267663e-01},
1119{9.5306639e-01},
1120{9.5647018e-01},
1121{1.0069834e+00},
1122{1.1414283e+00},
1123{1.1332454e+00},
1124{1.1183329e+00},
1125{8.5964718e-01},
1126{7.0259273e-01},
1127{6.1086847e-01},
1128{8.7145976e-01},
1129{1.1109278e+00},
1130{1.1713319e+00},
1131{1.2600859e+00},
1132{1.0459933e+00},
1133{7.6697548e-01},
1134{5.4492361e-01},
1135{5.5082792e-01},
1136{9.1787603e-01},
1137{1.0454451e+00},
1138{1.0416026e+00},
1139{1.1762039e+00},
1140{1.0460129e+00},
1141{9.5856257e-01},
1142{7.4291843e-01},
1143{7.0478730e-01},
1144{8.6904294e-01},
1145{1.1074327e+00},
1146{1.2185136e+00},
1147{1.3067057e+00},
1148{1.0916662e+00},
1149{7.6226341e-01},
1150{5.0599582e-01},
1151{4.7004755e-01},
1152{8.5459323e-01},
1153{9.8292600e-01},
1154{9.4923741e-01},
1155{1.1230180e+00},
1156{1.1230727e+00},
1157{1.1436380e+00},
1158{9.6517685e-01},
1159{7.5906667e-01},
1160{6.4229098e-01},
1161{7.3739829e-01},
1162{1.0441989e+00},
1163{1.1689429e+00},
1164{1.2377221e+00},
1165{1.1702644e+00},
1166{8.5776744e-01},
1167{6.1283507e-01},
1168{4.7508171e-01},
1169{7.7650778e-01},
1170{1.0199875e+00},
1171{1.0098181e+00},
1172{1.1277738e+00},
1173{1.1115547e+00},
1174{1.0256012e+00},
1175{8.8156161e-01},
1176{7.0600708e-01},
1177{7.6171841e-01},
1178{9.5613909e-01},
1179{1.1569502e+00},
1180{1.2691300e+00},
1181{1.2887802e+00},
1182{9.7384680e-01},
1183{6.5493328e-01},
1184{4.3953117e-01},
1185{5.7648851e-01},
1186{9.2999054e-01},
1187{9.5436230e-01},
1188{9.7297008e-01},
1189{1.1391325e+00},
1190{1.1416064e+00},
1191{1.1590944e+00},
1192{9.0850247e-01},
1193{7.1895834e-01},
1194{5.8564424e-01},
1195{7.8301903e-01},
1196{1.0675300e+00},
1197{1.1390766e+00},
1198{1.2237314e+00},
1199{1.1158432e+00},
1200{8.4615038e-01},
1201{6.2929929e-01},
1202{5.3024321e-01},
1203{8.4771779e-01},
1204{1.0679772e+00},
1205{1.0707805e+00},
1206{1.1942615e+00},
1207{1.0628072e+00},
1208{9.0277875e-01},
1209{7.0464579e-01},
1210{6.4124982e-01},
1211{8.9445063e-01},
1212{1.1236998e+00},
1213{1.1838208e+00},
1214{1.2721938e+00},
1215{1.0302053e+00},
1216{7.4928918e-01},
1217{5.2054789e-01},
1218{5.5300914e-01},
1219{9.2450978e-01},
1220{1.0290172e+00},
1221{1.0254177e+00},
1222{1.1658431e+00},
1223{1.0585030e+00},
1224{9.9937151e-01},
1225{7.7845423e-01},
1226{7.1727834e-01},
1227{8.1473462e-01},
1228{1.0635825e+00},
1229{1.2081434e+00},
1230{1.3087387e+00},
1231{1.1774543e+00},
1232{8.2930325e-01},
1233{5.4568406e-01},
1234{4.2252006e-01},
1235{7.6155262e-01},
1236{9.6902023e-01},
1237{9.2946430e-01},
1238{1.0663917e+00},
1239{1.1373062e+00},
1240{1.1667915e+00},
1241{1.0769457e+00},
1242{8.1823128e-01},
1243{6.5190054e-01},
1244{6.0082155e-01},
1245{9.2122516e-01},
1246{1.1147361e+00},
1247{1.1467530e+00},
1248{1.2352757e+00},
1249{9.9993521e-01},
1250{7.6890308e-01},
1251{5.5857496e-01},
1252{6.2725763e-01},
1253{9.7318317e-01},
1254{1.0840117e+00},
1255{1.1108847e+00},
1256{1.1857549e+00},
1257{9.7757101e-01},
1258{8.2394503e-01},
1259{6.1941336e-01},
1260{7.2410931e-01},
1261{1.0158088e+00},
1262{1.1491174e+00},
1263{1.2188178e+00},
1264{1.2007209e+00},
1265{8.9859946e-01},
1266{6.5456633e-01},
1267{4.8391373e-01},
1268{7.3135136e-01},
1269{1.0176181e+00},
1270{1.0277501e+00},
1271{1.1176213e+00},
1272{1.1248859e+00},
1273{1.0041498e+00},
1274{8.7364691e-01},
1275{6.8812425e-01},
1276{7.7228478e-01},
1277{9.8423833e-01},
1278{1.1655135e+00},
1279{1.2710944e+00},
1280{1.2619166e+00},
1281{9.3651452e-01},
1282{6.3284215e-01},
1283{4.3578889e-01},
1284{6.3021849e-01},
1285{9.5269846e-01},
1286{9.5770175e-01},
1287{1.0064613e+00},
1288{1.1416014e+00},
1289{1.1318041e+00},
1290{1.1173687e+00},
1291{8.5933718e-01},
1292{7.0364317e-01},
1293{6.1326177e-01},
1294{8.7318554e-01},
1295{1.1121947e+00},
1296{1.1737687e+00},
1297{1.2616019e+00},
1298{1.0447114e+00},
1299{7.6386287e-01},
1300{5.4149208e-01},
1301{5.5006680e-01},
1302{9.1816862e-01},
1303{1.0427545e+00},
1304{1.0385725e+00},
1305{1.1744959e+00},
1306{1.0484442e+00},
1307{9.6566520e-01},
1308{7.4941645e-01},
1309{7.0654030e-01},
1310{8.5978495e-01},
1311{1.1007328e+00},
1312{1.2172148e+00},
1313{1.3084224e+00},
1314{1.1066295e+00},
1315{7.7306455e-01},
1316{5.1195750e-01},
1317{4.5881820e-01},
1318{8.3991753e-01},
1319{9.8090418e-01},
1320{9.4402667e-01},
1321{1.1150495e+00},
1322{1.1263864e+00},
1323{1.1498512e+00},
1324{9.8537193e-01},
1325{7.6788821e-01},
1326{6.4101222e-01},
1327{7.0798171e-01},
1328{1.0241973e+00},
1329{1.1588402e+00},
1330{1.2194902e+00},
1331{1.1900225e+00},
1332{8.8503290e-01},
1333{6.4170616e-01},
1334{4.8247262e-01},
1335{7.4633801e-01},
1336{1.0194608e+00},
1337{1.0238758e+00},
1338{1.1225142e+00},
1339{1.1204876e+00},
1340{1.0078894e+00},
1341{8.7195748e-01},
1342{6.9071922e-01},
1343{7.7128559e-01},
1344{9.8171063e-01},
1345{1.1648359e+00},
1346{1.2716060e+00},
1347{1.2653194e+00},
1348{9.4044785e-01},
1349{6.3462126e-01},
1350{4.3541986e-01},
1351{6.2397592e-01},
1352{9.4996429e-01},
1353{9.5654324e-01},
1354{1.0018949e+00},
1355{1.1415375e+00},
1356{1.1340702e+00},
1357{1.1242483e+00},
1358{8.6601272e-01},
1359{7.0479002e-01},
1360{6.0700568e-01},
1361{8.6003770e-01},
1362{1.1056434e+00},
1363{1.1671804e+00},
1364{1.2575999e+00},
1365{1.0561104e+00},
1366{7.7723774e-01},
1367{5.5451638e-01},
1368{5.4470017e-01},
1369{9.0953268e-01},
1370{1.0489983e+00},
1371{1.0432715e+00},
1372{1.1787522e+00},
1373{1.0466535e+00},
1374{9.5253913e-01},
1375{7.3976965e-01},
1376{6.9910727e-01},
1377{8.7457184e-01},
1378{1.1111747e+00},
1379{1.2168058e+00},
1380{1.3037145e+00},
1381{1.0820947e+00},
1382{7.5710433e-01},
1383{5.0441461e-01},
1384{4.7923251e-01},
1385{8.6434525e-01},
1386{9.8624111e-01},
1387{9.5555561e-01},
1388{1.1291297e+00},
1389{1.1187232e+00},
1390{1.1339455e+00},
1391{9.4624297e-01},
1392{7.5185473e-01},
1393{6.4886735e-01},
1394{7.6947931e-01},
1395{1.0640658e+00},
1396{1.1819490e+00},
1397{1.2581006e+00},
1398{1.1479357e+00},
1399{8.2795383e-01},
1400{5.8084914e-01},
1401{4.6968322e-01},
1402{8.0540679e-01},
1403{1.0147037e+00},
1404{9.9267552e-01},
1405{1.1297166e+00},
1406{1.1074520e+00},
1407{1.0535732e+00},
1408{8.9989357e-01},
1409{7.2414622e-01},
1410{7.3710872e-01},
1411{9.0842211e-01},
1412{1.1372436e+00},
1413{1.2550645e+00},
1414{1.3118017e+00},
1415{1.0309191e+00},
1416{6.9715233e-01},
1417{4.6014528e-01},
1418{5.1093338e-01},
1419{8.9602085e-01},
1420{9.6063866e-01},
1421{9.4454964e-01},
1422{1.1299822e+00},
1423{1.1400660e+00},
1424{1.1784050e+00},
1425{9.5942169e-01},
1426{7.4592605e-01},
1427{5.9179210e-01},
1428{7.0833096e-01},
1429{1.0269127e+00},
1430{1.1280089e+00},
1431{1.1874924e+00},
1432{1.1668412e+00},
1433{8.9924653e-01},
1434{6.8916581e-01},
1435{5.3047422e-01},
1436{7.7534076e-01},
1437{1.0549099e+00},
1438{1.0847312e+00},
1439{1.1818109e+00},
1440{1.1071479e+00},
1441{9.0609669e-01},
1442{7.2016981e-01},
1443{5.9922569e-01},
1444{8.4631545e-01},
1445{1.1007330e+00},
1446{1.1539455e+00},
1447{1.2548057e+00},
1448{1.0707369e+00},
1449{7.9955359e-01},
1450{5.7211183e-01},
1451{5.3729384e-01},
1452{8.9511329e-01},
1453{1.0559775e+00},
1454{1.0482488e+00},
1455{1.1833103e+00},
1456{1.0467011e+00},
1457{9.3892077e-01},
1458{7.3109756e-01},
1459{6.8881096e-01},
1460{8.8724202e-01},
1461{1.1196405e+00},
1462{1.2137632e+00},
1463{1.2969341e+00},
1464{1.0598913e+00},
1465{7.4476987e-01},
1466{5.0025043e-01},
1467{5.0175473e-01},
1468{8.8612613e-01},
1469{9.9295902e-01},
1470{9.7027740e-01},
1471{1.1406663e+00},
1472{1.1082236e+00},
1473{1.1111857e+00},
1474{9.0519862e-01},
1475{7.3853971e-01},
1476{6.6752554e-01},
1477{8.4076984e-01},
1478{1.1041197e+00},
1479{1.2107499e+00},
1480{1.2910787e+00},
1481{1.0889124e+00},
1482{7.6218879e-01},
1483{5.1854183e-01},
1484{4.8212027e-01},
1485{8.6343438e-01},
1486{9.9664176e-01},
1487{9.6786348e-01},
1488{1.1354766e+00},
1489{1.1100558e+00},
1490{1.1078273e+00},
1491{9.1950063e-01},
1492{7.4186814e-01},
1493{6.7554741e-01},
1494{8.2771704e-01},
1495{1.0970261e+00},
1496{1.2115055e+00},
1497{1.2926801e+00},
1498{1.1044430e+00},
1499{7.7268354e-01},
1500{5.2367729e-01},
1501{4.6962326e-01},
1502{8.4775775e-01},
1503{9.9325612e-01},
1504{9.6094332e-01},
1505{1.1271528e+00},
1506{1.1156670e+00},
1507{1.1183008e+00},
1508{9.4351589e-01},
1509{7.5035067e-01},
1510{6.6773972e-01},
1511{7.8886291e-01},
1512{1.0750322e+00},
1513{1.1971741e+00},
1514{1.2770426e+00},
1515{1.1387571e+00},
1516{8.0837143e-01},
1517{5.5509702e-01},
1518{4.5955065e-01},
1519{8.1398530e-01},
1520{1.0008314e+00},
1521{9.7057086e-01},
1522{1.1195985e+00},
1523{1.1149111e+00},
1524{1.0957539e+00},
1525{9.4451157e-01},
1526{7.4819097e-01},
1527{6.9474604e-01},
1528{8.1250200e-01},
1529{1.0876804e+00},
1530{1.2158509e+00},
1531{1.2988266e+00},
1532{1.1270851e+00},
1533{7.8595861e-01},
1534{5.2690470e-01},
1535{4.5032342e-01},
1536{8.2266007e-01},
1537{9.8371303e-01},
1538{9.4630598e-01},
1539{1.1090276e+00}};
1540
1541    private static readonly Dataset defaultDataset;
1542    private static readonly IEnumerable<string> defaultAllowedInputVariables;
1543    private static readonly string[] defaultTargetVariables;
1544
1545    private static readonly TimeSeriesPrognosisProblemData emptyProblemData;
1546    public static TimeSeriesPrognosisProblemData EmptyProblemData {
1547      get { return emptyProblemData; }
1548    }
1549
1550    static TimeSeriesPrognosisProblemData() {
1551      defaultDataset = new Dataset(new string[] { "x" }, mackey_glass_17);
1552      defaultDataset.Name = "Mackey-Glass (t=17) Time Series Benchmark Dataset";
1553      defaultAllowedInputVariables = new List<string>() { "x" };
1554      defaultTargetVariables = new string[] { "x" };
1555
1556      var problemData = new TimeSeriesPrognosisProblemData();
1557      problemData.Parameters.Clear();
1558      problemData.Name = "Empty Time-Series Prognosis ProblemData";
1559      problemData.Description = "This ProblemData acts as place holder before the correct problem data is loaded.";
1560      problemData.isEmpty = true;
1561
1562      problemData.Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", new Dataset()));
1563      problemData.Parameters.Add(new FixedValueParameter<ReadOnlyCheckedItemList<StringValue>>(InputVariablesParameterName, ""));
1564      problemData.Parameters.Add(new FixedValueParameter<IntRange>(TrainingPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly()));
1565      problemData.Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", (IntRange)new IntRange(0, 0).AsReadOnly()));
1566      problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariablesParameterName, new ItemSet<StringValue>()));
1567      emptyProblemData = problemData;
1568    }
1569    #endregion
1570
1571    public ValueParameter<CheckedItemList<StringValue>> TargetVariablesParameter {
1572      get { return (ValueParameter<CheckedItemList<StringValue>>)Parameters[TargetVariablesParameterName]; }
1573    }
1574    public IEnumerable<string> TargetVariables {
1575      get { return TargetVariablesParameter.Value.CheckedItems.Select(x => x.Value.Value); }
1576    }
1577
1578    [StorableConstructor]
1579    protected TimeSeriesPrognosisProblemData(bool deserializing) : base(deserializing) { }
1580    [StorableHook(HookType.AfterDeserialization)]
1581    private void AfterDeserialization() {
1582      RegisterParameterEvents();
1583    }
1584
1585    protected TimeSeriesPrognosisProblemData(TimeSeriesPrognosisProblemData original, Cloner cloner)
1586      : base(original, cloner) {
1587      RegisterParameterEvents();
1588    }
1589    public override IDeepCloneable Clone(Cloner cloner) {
1590      if (this == emptyProblemData) return emptyProblemData;
1591      return new TimeSeriesPrognosisProblemData(this, cloner);
1592    }
1593
1594    public TimeSeriesPrognosisProblemData()
1595      : this(defaultDataset, defaultAllowedInputVariables, defaultTargetVariables) {
1596    }
1597
1598    public TimeSeriesPrognosisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<string> targetVariables)
1599      : base(dataset, allowedInputVariables) {
1600      var variables = InputVariables.Select(x => x.AsReadOnly()).ToList();
1601      var targetVariablesList = new CheckedItemList<StringValue>(variables);
1602      foreach (var targetVar in targetVariables) {
1603        targetVariablesList.SetItemCheckedState(targetVariablesList.Single(x => x.Value == targetVar), true);
1604      }
1605      Parameters.Add(new FixedValueParameter<CheckedItemList<StringValue>>(TargetVariablesParameterName, targetVariablesList));
1606      RegisterParameterEvents();
1607    }
1608
1609    private void RegisterParameterEvents() {
1610      TargetVariablesParameter.Value.CheckedItemsChanged += TargetVariableParameter_ValueChanged;
1611    }
1612
1613    private void TargetVariableParameter_ValueChanged(object sender, EventArgs e) {
1614      OnChanged();
1615    }
1616
1617    #region Import from file
1618    public static TimeSeriesPrognosisProblemData ImportFromFile(string fileName) {
1619      TableFileParser csvFileParser = new TableFileParser();
1620      csvFileParser.Parse(fileName);
1621
1622      Dataset dataset = new Dataset(csvFileParser.VariableNames, csvFileParser.Values);
1623      dataset.Name = Path.GetFileName(fileName);
1624
1625      TimeSeriesPrognosisProblemData problemData = new TimeSeriesPrognosisProblemData(dataset, dataset.DoubleVariables, dataset.DoubleVariables.Take(1));
1626      problemData.Name = "Data imported from " + Path.GetFileName(fileName);
1627      return problemData;
1628    }
1629    #endregion
1630  }
1631}
Note: See TracBrowser for help on using the repository browser.