Exemplo n.º 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);
        }
Exemplo n.º 2
0
 protected bool Equals(SpectrumUnit other)
 {
     return(this.type == other.type && this.value.Equals(other.value));
 }