public InterpXYVec CopyMe() { var result = new InterpXYVec(); result.CopyParamsFrom(this); result.CopyDataFrom(this); return(result); }
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); } }
public static InterpXYVec LoadFromXmlString(string fileStr) => InterpXYVec.LoadFromXmlString <InterpXYVec>(fileStr);
public static InterpXYVec LoadFromXmlFile(string fileName) => InterpXYVec.LoadFromXmlFile <InterpXYVec>(fileName);