Пример #1
0
        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);
        }
Пример #2
0
 protected bool Equals(SpectrumUnit other)
 {
     return(this.type == other.type && this.value.Equals(other.value));
 }