예제 #1
0
 /// <summary>
 ///    Add the TableFormula representing the aging data for the individual with index <paramref name="individualIndex" />
 ///    and the parameter
 ///    with path <paramref name="parameterPath" />.
 /// </summary>
 /// <param name="parameterPath">Parameter full path</param>
 /// <param name="individualIndex">Index of individual</param>
 /// <param name="tableFormula">TableFormula representing the growth function for the parameter</param>
 public virtual void AddAgingTableFormula(string parameterPath, int individualIndex, TableFormula tableFormula)
 {
     foreach (var point in tableFormula.AllPoints())
     {
         AgingData.Add(individualIndex, parameterPath, point.X, point.Y);
     }
 }
예제 #2
0
        public virtual AgingData Clone()
        {
            var clone = new AgingData();

            _data.Each(x => clone.Add(x.Clone()));
            return(clone);
        }