Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/IMLTimeseries.cs @ 15919

Last change on this file since 15919 was 15919, checked in by rhanghof, 6 years ago

#2913: The import does now work with Matlab timeseries datatypes.

File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api.Types {
8    public interface IMLTimeseries : IMLVariable {
9        /// <summary>
10        /// Data headers of the timeseries.
11        /// </summary>
12        string[] DataHeader { get; }
13
14        /// <summary>
15        /// Returns the values of the timeseries for a given time.
16        /// </summary>
17        /// <param name="time"></param>
18        /// <param name="value"></param>
19        /// <returns></returns>
20        double[] GetValuesByTime(double time);
21
22        /// <summary>
23        /// Returns the values for a given time index.
24        /// This index is not a time.
25        /// </summary>
26        /// <param name="idx"></param>
27        /// <returns></returns>
28        double[] this[int idx] { get; }
29
30        /// <summary>
31        /// Returns an array which contains all time values.
32        /// </summary>
33        double[] Times { get; }
34
35        /// <summary>
36        /// Returns the time at a specific index.
37        /// </summary>
38        /// <param name="idx"></param>
39        /// <returns></returns>
40        double GetTimeAt(int idx);
41
42        /// <summary>
43        /// Returns the number of value entries.
44        /// </summary>
45        int Count { get; }
46    }
47}
Note: See TracBrowser for help on using the repository browser.