Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.DataAnalysis/3.4/GAM/Spline1dModel.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Algorithms.DataAnalysis merged: 17931,17934,17942,17979
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Algorithms.DataAnalysis/3.4 merged: 17931,17934,17942,17979
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.DataAnalysis/3.4/GAM/Spline1dModel.cs
r17889 r18027 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.