Changeset 8473 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceSEard.cs
- Timestamp:
- 08/10/12 20:42:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceSEard.cs
r8455 r8473 36 36 [Storable] 37 37 private double sf2; 38 public double Scale { get { return sf2; } } 39 38 40 [Storable] 39 41 private double[] l; 42 public double[] Length { 43 get { 44 if (l == null) return new double[0]; 45 var copy = new double[l.Length]; 46 Array.Copy(l, copy, copy.Length); 47 return copy; 48 } 49 } 40 50 41 51 private double[,] sd; … … 76 86 this.l = hyp.Take(hyp.Length - 1).Select(Math.Exp).ToArray(); 77 87 this.sf2 = Math.Exp(2 * hyp[hyp.Length - 1]); 78 sf2 = Math.Min(10E6, sf2); // upper limit for the scale88 // sf2 = Math.Min(10E6, sf2); // upper limit for the scale 79 89 80 90 sd = null;
Note: See TracChangeset
for help on using the changeset viewer.