Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/12 15:21:19 (12 years ago)
Author:
abeham
Message:

#1913:

  • Refactored classes
  • Added parameter for number of iterations
  • Added parameter for neighborhood sampling (allows to speed up gradient calculation)
  • Adapted to changed k-NN algorithm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NCA/HeuristicLab.Algorithms.NCA/3.3/Matrix.cs

    r8437 r8466  
    3030  [NonDiscoverableType]
    3131  internal class Matrix : IEnumerable<double>, IDeepCloneable {
    32 
    33     private IEnumerable<double> values;
    34     public int Rows { get; private set; }
    35     public int Columns { get; private set; }
     32    // this type is immutable
     33    private readonly IEnumerable<double> values;
     34    public readonly int Rows;
     35    public readonly int Columns;
    3636
    3737    protected Matrix(Matrix original, Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.