示例#1
0
 /// <summary>The constructor.</summary>
 /// <param name="data">The series data array.</param>
 /// <param name="dimHorz">The horizontal dimension.</param>
 /// <param name="dimVert">The vertical dimension.</param>
 public Series(double[] data,
               HorzSeriesDimension dimHorz,
               VertSeriesDimension dimVert)
 {
     this.data    = data;
     this.DimHorz = dimHorz;
     this.DimVert = dimVert;
     DimHorz.data = data;
     DimVert.data = data;
 }
示例#2
0
        /// <summary>
        /// Initialize the series data.
        /// </summary>
        void InitSeries()
        {
            VertSeriesDimension dimVoltage = new VertSeriesDimension();

            dimVoltage.GetUnitStart  = () => - Profile.vdiffMaxDouble;
            dimVoltage.GetUnitRange  = () => Profile.vdiffMaxDouble * 2;
            dimVoltage.GetNewSIValue = () => new SIVoltage();

            HorzSeriesDimension dimTime = new HorzSeriesDimension();

            dimTime.GetUnitStart  = () => Profile.timeStart.Value;
            dimTime.GetUnitRange  = () => Profile.timeRangeDouble;
            dimTime.GetNewSIValue = () => new SITime();

            Voltages = new Series(
                Array.ConvertAll(Point, p => p.val),
                dimTime, dimVoltage);
        }