/// <summary> /// Initializes a new instance of the <see cref="SeismographInfo" /> class. /// </summary> public SeismographInfo() { Type = SeismometerType.Undefined; Gain = 1.0f; Sensitivity = 1.0f; Lsb = 1.0f; Paz = new PoleAndZero { Zeros = new Complex[] {}, Poles = new Complex[] {} }; }
/// <summary> /// Clones this instance. /// </summary> /// <returns>SeismometerInfoBase.</returns> public SeismographInfo Clone() { var clone = (SeismographInfo)MemberwiseClone(); var newPaz = new PoleAndZero { Zeros = new Complex[Paz.Zeros.Length], Poles = new Complex[Paz.Poles.Length] }; Array.Copy(Paz.Zeros, newPaz.Zeros, Paz.Zeros.Length); Array.Copy(Paz.Poles, newPaz.Poles, Paz.Poles.Length); clone.Paz = newPaz; return(clone); }