- Timestamp:
- 04/09/21 20:14:14 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/GAM/Spline1dModel.cs
r17889 r17934 55 55 private Spline1dModel(Spline1dModel orig, Cloner cloner) : base(orig, cloner) { 56 56 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(); 58 58 } 59 59 public Spline1dModel(alglib.spline1d.spline1dinterpolant interpolant, string targetVar, string inputVar) 60 60 : base(targetVar, $"Spline model ({inputVar})") { 61 61 this.interpolant = (alglib.spline1d.spline1dinterpolant)interpolant.make_copy(); 62 this.inputVariable = inputVar; 62 this.inputVariable = inputVar; 63 63 } 64 64 … … 73 73 } 74 74 75 public double GetEstimatedValue(double x) => alglib.spline1d.spline1dcalc(interpolant, x );75 public double GetEstimatedValue(double x) => alglib.spline1d.spline1dcalc(interpolant, x, null); 76 76 77 77 public override IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) {
Note: See TracChangeset
for help on using the changeset viewer.