Changeset 14892 for branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions
- Timestamp:
- 04/26/17 12:23:36 (8 years ago)
- Location:
- branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/CicularKernel.cs
r14891 r14892 45 45 protected override double Get(double norm) { 46 46 var beta = Beta.Value; 47 if (Math.Abs( Beta.Value) < double.Epsilon) return double.NaN;48 if (norm >= Beta.Value) return 0;47 if (Math.Abs(beta) < double.Epsilon) return double.NaN; 48 if (norm >= beta) return 0; 49 49 var d = norm / beta; 50 50 return 2 * Math.PI * (Math.Acos(-d) - d * Math.Sqrt(1 - d * d)); -
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/PolysplineKernel.cs
r14891 r14892 37 37 #endregion 38 38 #region Parameterproperties 39 public IFixedValueParameter<DoubleValue> DegreeParameter 40 { 39 public IFixedValueParameter<DoubleValue> DegreeParameter { 41 40 get { return Parameters[DegreeParameterName] as IFixedValueParameter<DoubleValue>; } 42 41 } 43 42 #endregion 44 43 #region Properties 45 public DoubleValue Degree 46 { 44 public DoubleValue Degree { 47 45 get { return DegreeParameter.Value; } 48 46 } -
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/ThinPlatePolysplineKernel.cs
r14891 r14892 37 37 #endregion 38 38 #region Parameterproperties 39 public IFixedValueParameter<DoubleValue> DegreeParameter 40 { 39 public IFixedValueParameter<DoubleValue> DegreeParameter { 41 40 get { return Parameters[DegreeParameterName] as IFixedValueParameter<DoubleValue>; } 42 41 } 43 42 #endregion 44 43 #region Properties 45 public DoubleValue Degree 46 { 44 public DoubleValue Degree { 47 45 get { return DegreeParameter.Value; } 48 46 }
Note: See TracChangeset
for help on using the changeset viewer.