Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/13 16:06:26 (12 years ago)
Author:
gkronber
Message:

#1902 fixed bugs in ARD covariance functions (checked if parameter and gradient order matches for all functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceFunctions/CovarianceRationalQuadraticIso.cs

    r8982 r9108  
    8484      int c = 0;
    8585      // gather parameter values
     86      if (InverseLengthParameter.Value != null) {
     87        inverseLength = InverseLengthParameter.Value.Value;
     88      } else {
     89        inverseLength = 1.0 / Math.Exp(p[c]);
     90        c++;
     91      }
    8692      if (ScaleParameter.Value != null) {
    8793        scale = ScaleParameter.Value.Value;
     
    94100      } else {
    95101        shape = Math.Exp(p[c]);
    96         c++;
    97       }
    98       if (InverseLengthParameter.Value != null) {
    99         inverseLength = InverseLengthParameter.Value.Value;
    100       } else {
    101         inverseLength = 1.0 / Math.Exp(p[c]);
    102102        c++;
    103103      }
Note: See TracChangeset for help on using the changeset viewer.