Ignore:
Timestamp:
10/19/18 13:27:06 (3 years ago)
Author:
mkommend
Message:

#2955: Added IsProblemDataCompatible and IsDatasetCompatible to all DataAnalysisModels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs

    r15583 r16243  
    8383    }
    8484
     85    public virtual bool IsProblemDataCompatible(IRegressionProblemData problemData, out string errorMessage) {
     86      return RegressionModel.IsProblemDataCompatible(this, problemData, out errorMessage);
     87    }
     88
     89    public override bool IsProblemDataCompatible(IDataAnalysisProblemData problemData, out string errorMessage) {
     90      if (problemData == null) throw new ArgumentNullException("problemData", "The provided problemData is null.");
     91      var regressionProblemData = problemData as IRegressionProblemData;
     92      if (regressionProblemData == null)
     93        throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     94      return IsProblemDataCompatible(regressionProblemData, out errorMessage);
     95    }
     96
    8597    #region events
    8698    public event EventHandler TargetVariableChanged;
Note: See TracChangeset for help on using the changeset viewer.