Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/12 18:45:15 (12 years ago)
Author:
gkronber
Message:

#1902: added masking covariance function and made necessary changes to interface and utility class.

File:
1 edited

Legend:

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

    r8612 r8678  
    5151    }
    5252
    53     public double GetCovariance(double[,] x, int i, int j) {
    54       return Util.ScalarProd(x, i, j);
     53    public double GetCovariance(double[,] x, int i, int j, IEnumerable<int> columnIndices) {
     54      return Util.ScalarProd(x, i, j, 1, columnIndices);
    5555    }
    5656
    57     public IEnumerable<double> GetGradient(double[,] x, int i, int j) {
     57    public IEnumerable<double> GetGradient(double[,] x, int i, int j, IEnumerable<int> columnIndices) {
    5858      yield break;
    5959    }
    6060
    61     public double GetCrossCovariance(double[,] x, double[,] xt, int i, int j) {
     61    public double GetCrossCovariance(double[,] x, double[,] xt, int i, int j, IEnumerable<int> columnIndices) {
    6262      return Util.ScalarProd(x, i, xt, j);
    6363    }
Note: See TracChangeset for help on using the changeset viewer.