public ComplexCoordinate Transform(SpectrumUnit spec, double timeStep) { var freq = spec.ToType(SpectrumUnitType.CycleFrequency); var seed = ComplexCoordinate.Zero; for (int i = 0; i < this.Count; i++) { seed += ComplexCoordinate.FromPolarCoordinates(this[i], freq * timeStep * i); } return(seed); }
protected bool Equals(SpectrumUnit other) { return(this.type == other.type && this.value.Equals(other.value)); }