Esempio n. 1
0
        public InterpXYVec CopyMe()
        {
            var result = new InterpXYVec();

            result.CopyParamsFrom(this);
            result.CopyDataFrom(this);
            return(result);
        }
Esempio n. 2
0
 public void CopyDataFrom(InterpXYVec parent, bool delPrevData = false)
 {
     if (delPrevData)
     {
         _data.Clear();
     }
     _data.Capacity = _data.Capacity > (_data.Count + parent.Data.Count) ?
                      (int)((_data.Count + parent.Data.Count) * 1.5) :
                      _data.Capacity;
     foreach (var item in parent.Data)
     {
         Add(item.Key, item.Value.Value);
     }
 }
Esempio n. 3
0
 public static InterpXYVec LoadFromXmlString(string fileStr) => InterpXYVec.LoadFromXmlString <InterpXYVec>(fileStr);
Esempio n. 4
0
 public static InterpXYVec LoadFromXmlFile(string fileName) => InterpXYVec.LoadFromXmlFile <InterpXYVec>(fileName);