Last change
on this file since 15958 was
15926,
checked in by rhanghof, 7 years ago
|
#2913:
- Added the support for importing different Matlab datatypes.
- Added some classes and changed the import dialog for importing double arrays.
|
File size:
1.6 KB
|
Line | |
---|
1 |
|
---|
2 | using System;
|
---|
3 | using System.Collections.Generic;
|
---|
4 | using System.Linq;
|
---|
5 | using System.Text;
|
---|
6 | using System.Threading.Tasks;
|
---|
7 | using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api.Types;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Problems.Instances.DataAnalysis.Regression.Matlab.Api {
|
---|
10 | public interface IMatlabConnector : IDisposable {
|
---|
11 | event Action<string> ErrorOccuredEvent;
|
---|
12 |
|
---|
13 | /// <summary>
|
---|
14 | /// Executes a given matlab script.
|
---|
15 | /// </summary>
|
---|
16 | /// <param name="script"></param>
|
---|
17 | void ExecuteScript(string script);
|
---|
18 |
|
---|
19 | /// <summary>
|
---|
20 | /// Executes a matlab command.
|
---|
21 | /// </summary>
|
---|
22 | /// <param name="command"></param>
|
---|
23 | void Execute(string command);
|
---|
24 |
|
---|
25 | /// <summary>
|
---|
26 | /// Returns a dictionary with all available and supported variables from the matlab workspace.
|
---|
27 | /// </summary>
|
---|
28 | /// <returns></returns>
|
---|
29 | IEnumerable<MLVariableInfo> GetVariablesFromScript(string script);
|
---|
30 |
|
---|
31 | /// <summary>
|
---|
32 | ///
|
---|
33 | /// </summary>
|
---|
34 | /// <param name="varName"></param>
|
---|
35 | /// <returns></returns>
|
---|
36 | object GetVariable(string varName);
|
---|
37 |
|
---|
38 | /// <summary>
|
---|
39 | ///
|
---|
40 | /// </summary>
|
---|
41 | /// <param name="varName"></param>
|
---|
42 | /// <returns></returns>
|
---|
43 | MLTimeseries GetTimeseries(string varName);
|
---|
44 |
|
---|
45 | /// <summary>
|
---|
46 | ///
|
---|
47 | /// </summary>
|
---|
48 | /// <param name="varName"></param>
|
---|
49 | /// <returns></returns>
|
---|
50 | MLDouble GetDouble(string varName);
|
---|
51 |
|
---|
52 | /// <summary>
|
---|
53 | ///
|
---|
54 | /// </summary>
|
---|
55 | /// <param name="varName"></param>
|
---|
56 | /// <returns></returns>
|
---|
57 | MLDoubleArray GetDoubleArray(string varName);
|
---|
58 | }
|
---|
59 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.