Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Problems.GrammaticalOptimization/Feature.cs @ 12317

Last change on this file since 12317 was 11976, checked in by gkronber, 10 years ago

#2283 worked on seq search for ant

File size: 618 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.Problems.GrammaticalOptimization {
8  // for the feature extraction function for grammatical optimization problems (sparse representation)
9  public class Feature {
10    public string Id { get; private set; }
11    public double Value { get; private set; }
12
13    public Feature(string id, double val) {
14      this.Id = id;
15      this.Value = val;
16    }
17
18    public override string ToString() {
19      return string.Format("{0} {1:N3}", Id, Value);
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.