public double[] Values(GrafType type) { double[] res = new double[1]; switch (type) { case GrafType.ACTIV: res = this.ActivValues; break; case GrafType.RMS: res = this._rmsValues; break; case GrafType.FIRST_HARMONIC: res = this.FirstHarmonicDouble; break; } if (this._analogChartOptions == null) { return(res); } return(res.Select(o => o * this._analogChartOptions.Factor).ToArray()); }
public double Amplitude(GrafType type) { double res = 0; switch (type) { case GrafType.ACTIV: res = this.AmplitudeActiv; break; case GrafType.RMS: res = this.RmsAmplitude; break; case GrafType.FIRST_HARMONIC: res = this.FirstHarmonicAmplitude; break; } if (res == 0) { return(1.0); } return(res * this._analogChartOptions.Factor); }
public double GetY(GrafType type) { return(GetMiddleValue(this.Amplitude(type))); }