public override (double lowerThresh, double upperThresh) Calc(double currentValue) { var(lower, upper) = FirstApproximmation.Calc(currentValue); foreach (var approximation in InnerApproximmations) { lower = approximation.Calc(lower).lowerThresh; upper = approximation.Calc(upper).upperThresh; } return(lower, upper); }
public override string AsString() { return("Combined_" + FirstApproximmation.AsString() + "_" + string.Join("_", InnerApproximmations.Select(i => i.AsString()))); }