public Vector2D() { // Ensure that data is numerical DataMethods.EnsureIsNumeric(typeof(T)); }
/// <summary> /// Initialize a linear equation in the form /// y - y1 = m * (x - x1) [ Point-Slope form ] /// </summary> /// <param name="y1"> y-coordinate of Point-Slope form </param> /// <param name="x1"> x-coordinate of Point-Slope form </param> /// <param name="m"> slope of Point-Slope form </param> public LinearEquation(T y1, T x1, T m) { DataMethods.EnsureIsNumeric(typeof(T)); SetPointSlope(y1, x1, m); }
public ContinuousDataProvider(DataProviderDelegate del) { DataMethods.EnsureIsNumeric(typeof(T)); SetProvider(del); }
/// <summary> /// Initialize a linear equation in the form /// y = input1*x + input2, where x is the input variable /// and y is the output variable. [ Slope-Intercept form ] /// </summary> /// <param name="m"> Slope of linear equation </param> /// <param name="b"> y-intercept of linear equation </param> public LinearEquation(T m, T b) { DataMethods.EnsureIsNumeric(typeof(T)); SetSlopeIntercept(m, b); mGain = (T)(dynamic)1; }
public ContinuousDataProvider(Equation <T> equation) { DataMethods.EnsureIsNumeric(typeof(T)); SetProvider(equation); }