Changeset 15158 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/CicularKernel.cs
- Timestamp:
- 07/06/17 13:35:49 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/CicularKernel.cs
r15156 r15158 41 41 42 42 protected override double Get(double norm) { 43 if (Beta == null) throw new InvalidOperationException("Can not calculate kernel distance while Beta is null"); 43 44 var beta = Beta.Value; 44 45 if (Math.Abs(beta) < double.Epsilon) return double.NaN; … … 50 51 // 4*pi*n^3 / (beta^4 * sqrt(1-n^2/beta^2) 51 52 protected override double GetGradient(double norm) { 53 if (Beta == null) throw new InvalidOperationException("Can not calculate kernel distance gradient while Beta is null"); 52 54 var beta = Beta.Value; 53 55 if (Math.Abs(beta) < double.Epsilon) return double.NaN;
Note: See TracChangeset
for help on using the changeset viewer.