Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/DataSources/MultiDimensional/IDataSource2D.cs @ 13808

Last change on this file since 13808 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using Microsoft.Research.DynamicDataDisplay.Charts;
7
8namespace Microsoft.Research.DynamicDataDisplay.DataSources
9{
10  /// <summary>
11  /// General interface for two-dimensional data source. Contains two-dimensional array of data items.
12  /// </summary>
13  /// <typeparam name="T">Data type - type of each data piece.</typeparam>
14  public interface IDataSource2D<T> : IGridSource2D where T : struct
15  {
16    /// <summary>
17    /// Gets two-dimensional data array.
18    /// </summary>
19    /// <value>The data.</value>
20    T[,] Data { get; }
21
22    IDataSource2D<T> GetSubset(int x0, int y0, int countX, int countY, int stepX, int stepY);
23
24    Range<T>? Range { get; }
25
26    T? MissingValue { get; }
27  }
28
29  /// <summary>
30  /// General interface for two-dimensional data grids. Contains two-dimensional array of data points.
31  /// </summary>
32  public interface IGridSource2D
33  {
34    /// <summary>
35    /// Gets the grid of data source.
36    /// </summary>
37    /// <value>The grid.</value>
38    Point[,] Grid { get; }
39    /// <summary>
40    /// Gets data grid width.
41    /// </summary>
42    /// <value>The width.</value>
43    int Width { get; }
44    /// <summary>
45    /// Gets data grid height.
46    /// </summary>
47    /// <value>The height.</value>
48    int Height { get; }
49
50    /// <summary>
51    /// Occurs when data source changes.
52    /// </summary>
53    event EventHandler Changed;
54  }
55}
Note: See TracBrowser for help on using the repository browser.