Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/09/21 20:14:14 (3 years ago)
Author:
gkronber
Message:

#3117: fixed build fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/GAM/Spline1dModel.cs

    r17889 r17934  
    5555    private Spline1dModel(Spline1dModel orig, Cloner cloner) : base(orig, cloner) {
    5656      this.inputVariable = orig.inputVariable;
    57       this.interpolant = (alglib.spline1d.spline1dinterpolant)orig.interpolant.make_copy();
     57      if(orig.interpolant != null) this.interpolant = (alglib.spline1d.spline1dinterpolant)orig.interpolant.make_copy();
    5858    }
    5959    public Spline1dModel(alglib.spline1d.spline1dinterpolant interpolant, string targetVar, string inputVar)
    6060      : base(targetVar, $"Spline model ({inputVar})") {
    6161      this.interpolant = (alglib.spline1d.spline1dinterpolant)interpolant.make_copy();
    62       this.inputVariable = inputVar;     
     62      this.inputVariable = inputVar;
    6363    }
    6464
     
    7373    }
    7474
    75     public double GetEstimatedValue(double x) => alglib.spline1d.spline1dcalc(interpolant, x);
     75    public double GetEstimatedValue(double x) => alglib.spline1d.spline1dcalc(interpolant, x, null);
    7676
    7777    public override IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) {
Note: See TracChangeset for help on using the changeset viewer.