public static double Value(TimeSeries input, int index, int length, BarData option, RegressionDistanceMode distanceMode) { if (index < length - 1 + input.FirstIndex) { return(double.NaN); } double num1 = input[index, option]; double num2 = LRI.Value(input, index, length, option, distanceMode); return(100.0 * (num1 - num2) / num2); }
public static double Value(DoubleSeries input, int index, int length) { return(LRI.Value((TimeSeries)input, index, length, BarData.Close, RegressionDistanceMode.Time)); }
protected override void Calculate(int index) { double Data = LRI.Value(this.fInput, index, this.fLength, this.fOption, this.aKF3Bglmd); this.Add(this.fInput.GetDateTime(index), Data); }