Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/01/12 19:02:47 (12 years ago)
Author:
gkronber
Message:

#1902: removed class HyperParameter and changed implementations of covariance and mean functions to remove the parameter value caching and event handlers for parameter caching. Instead it is now possible to create the actual covariance and mean functions as Func from templates and specified parameter values. The instances of mean and covariance functions configured in the GUI are actually templates where the structure and fixed parameters can be specified.

File:
1 edited

Legend:

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

    r8612 r8982  
    1919 */
    2020#endregion
     21
     22using System;
     23using System.Collections.Generic;
    2124using HeuristicLab.Core;
    2225
    2326namespace HeuristicLab.Algorithms.DataAnalysis {
     27  public delegate double MeanFunctionDelegate(double[,] x, int row);
     28  public delegate double MeanGradientDelegate(double[,] x, int row, int k);
     29
     30  public class ParameterizedMeanFunction {
     31    public MeanFunctionDelegate Mean { get; set; }
     32    public MeanGradientDelegate Gradient { get; set; }
     33  }
     34
    2435  public interface IMeanFunction : IItem {
    2536    int GetNumberOfParameters(int numberOfVariables);
    26     void SetParameter(double[] hyp);
    27     double[] GetMean(double[,] x);
    28     double[] GetGradients(int k, double[,] x);
     37    void SetParameter(double[] p);
     38    ParameterizedMeanFunction GetParameterizedMeanFunction(double[] p, IEnumerable<int> columnIndices);
    2939  }
    3040}
Note: See TracChangeset for help on using the changeset viewer.