Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3458


Ignore:
Timestamp:
04/21/10 12:42:54 (15 years ago)
Author:
mkommend
Message:

corrected default ctor in Dataset (ticket #938)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs

    r3442 r3458  
    3636  public sealed class Dataset : NamedItem, IStringConvertibleMatrix {
    3737    public Dataset()
    38       : this(new string[1] { "y" }, new double[,] { { 0.0 } }) {
     38      : base() {
     39      this.Name = string.Empty;
     40      this.data = new double[0, 0];
     41      this.variableNames = new string[0];
     42      this.SortableView = false;
    3943    }
    4044
    4145    public Dataset(IEnumerable<string> variableNames, double[,] data)
    42       : base() {
     46      : this() {
    4347      Name = "-";
    4448      if (variableNames.Count() != data.GetLength(1)) {
     
    4751      this.data = data;
    4852      this.variableNames = variableNames.ToArray();
    49       this.SortableView = false;
    5053    }
    5154
Note: See TracChangeset for help on using the changeset viewer.