Changeset 8982 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/IMeanFunction.cs
- Timestamp:
- 12/01/12 19:02:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/IMeanFunction.cs
r8612 r8982 19 19 */ 20 20 #endregion 21 22 using System; 23 using System.Collections.Generic; 21 24 using HeuristicLab.Core; 22 25 23 26 namespace 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 24 35 public interface IMeanFunction : IItem { 25 36 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); 29 39 } 30 40 }
Note: See TracChangeset
for help on using the changeset viewer.