Changeset 767 for trunk/sources/HeuristicLab.GP
- Timestamp:
- 11/16/08 00:39:50 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP/BakedFunctionTree.cs
r656 r767 32 32 33 33 public class LightWeightFunction { 34 public intarity = 0;34 public byte arity = 0; 35 35 public IFunction functionType; 36 36 public List<double> data = new List<double>(); … … 116 116 private void FlattenTrees() { 117 117 if(treesExpanded) { 118 linearRepresentation[0].arity = subTrees.Count;118 linearRepresentation[0].arity = (byte)subTrees.Count; 119 119 foreach(BakedFunctionTree subTree in subTrees) { 120 120 subTree.FlattenVariables(); … … 295 295 foreach(XmlNode entryNode in linearRepresentationNode.ChildNodes) { 296 296 LightWeightFunction f = new LightWeightFunction(); 297 f.arity = int.Parse(entryNode.Attributes["Arity"].Value, CultureInfo.InvariantCulture);297 f.arity = byte.Parse(entryNode.Attributes["Arity"].Value, CultureInfo.InvariantCulture); 298 298 if(entryNode.Attributes["Data"]!=null) 299 299 f.data = GetList<double>(entryNode.Attributes["Data"].Value, s => double.Parse(s, CultureInfo.InvariantCulture));
Note: See TracChangeset
for help on using the changeset viewer.