/// <summary>Gets the value of the integral \int_a^b f(x) dx inside two specific grid points. /// </summary> /// <param name="lowerBound">The lower bound; between the grid point arguments specified by <paramref name="leftGridPointIndex" /> and <paramref name="leftGridPointIndex" /> + 1.</param> /// <param name="upperBound">The upper bound; between the grid point arguments specified by <paramref name="leftGridPointIndex" /> and <paramref name="leftGridPointIndex" /> + 1.</param> /// <param name="leftGridPointIndex">The null-based index of the left grid point index.</param> /// <returns>The value of \int_a^b f(x) dx.</returns> public double GetIntegral(double lowerBound, double upperBound, int leftGridPointIndex) { return(m_SplineEvaluator.GetIntegral(lowerBound, upperBound, leftGridPointIndex)); }
/// <summary>Gets the value of the integral \int_a^b f(x) dx. /// </summary> /// <param name="lowerBound">The lower bound.</param> /// <param name="upperBound">The upper bound.</param> /// <returns>The value of \int_a^b f(x) dx.</returns> /// <remarks>The arguments must be elements of the domain of definition, represented by <see cref="IRealValuedCurve.LowerBound"/> and <see cref="IRealValuedCurve.UpperBound"/>.</remarks> public double GetIntegral(double lowerBound, double upperBound) { return(m_SplineEvaluator.GetIntegral(lowerBound, upperBound)); }