Changeset 6671
- Timestamp:
- 08/18/11 13:00:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionFuzzifier.cs
r6670 r6671 24 24 get { return (ValueParameter<StringValue>)Parameters["Target"]; } 25 25 } 26 public ValueParameter<StringValue> SuffixParameter {27 get { return (ValueParameter<StringValue>)Parameters["Suffix"]; }28 }29 26 public ValueParameter<DoubleValue> SpreadParameter { 30 27 get { return (ValueParameter<DoubleValue>)Parameters["Spread"]; } … … 39 36 40 37 private string Source { get { return SourceParameter.Value.Value; } } 41 private string Target { get { return TargetParameter.Value.Value; } } 42 private string Suffix { get { return SuffixParameter.Value.Value; } } 38 private string Target { get { return TargetParameter.Value.Value; } } 43 39 private double Spread { get { return SpreadParameter.Value.Value; } } 44 40 private string GroupBy { get { return GroupByParameter.Value.Value; } } … … 54 50 public RunCollectionFuzzifier() { 55 51 Parameters.Add(new ValueParameter<StringValue>("Source", "Source value name to be fuzzified.", new StringValue("Value"))); 56 Parameters.Add(new ValueParameter<StringValue>("Target", "Target value name. The new, fuzzified variable to be created.", new StringValue("Calc.Value"))); 57 Parameters.Add(new ValueParameter<StringValue>("Suffix", "The suffix of all fuzzified values.", new StringValue())); 52 Parameters.Add(new ValueParameter<StringValue>("Target", "Target value name. The new, fuzzified variable to be created.", new StringValue("Calc.Value"))); 58 53 Parameters.Add(new ValueParameter<DoubleValue>("Spread", "The number of standard deviations considered one additional level.", new DoubleValue(1))); 59 54 Parameters.Add(new ValueParameter<StringValue>("GroupBy", "Create separate analyzes for different values of this variable.", new StringValue(""))); … … 80 75 private void RegisterEvents() { 81 76 SourceParameter.ToStringChanged += Parameter_NameChanged; 82 TargetParameter.ToStringChanged += Parameter_NameChanged; 83 SuffixParameter.ToStringChanged += Parameter_NameChanged; 77 TargetParameter.ToStringChanged += Parameter_NameChanged; 84 78 GroupByParameter.ToStringChanged += Parameter_NameChanged; 85 79 } … … 90 84 91 85 private void UpdateName() { 92 name = string.Format("{0} := Fuzzy({1} ) {3}",86 name = string.Format("{0} := Fuzzy({1}{2})", 93 87 Target, 94 88 Source, 95 string.IsNullOrWhiteSpace(GroupBy) ? "" : string.Format("/{0}", GroupBy), 96 Suffix); 89 string.IsNullOrWhiteSpace(GroupBy) ? "" : string.Format("/{0}", GroupBy)); 97 90 OnNameChanged(); 98 91 }
Note: See TracChangeset
for help on using the changeset viewer.