using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HeuristicLab.Problems.GrammaticalOptimization { // for the feature extraction function for grammatical optimization problems (sparse representation) public class Feature { public string Id { get; private set; } public double Value { get; private set; } public Feature(string id, double val) { this.Id = id; this.Value = val; } public override string ToString() { return string.Format("{0} {1:N3}", Id, Value); } } }