The Knights of Ni 2024
CenterStage Off-season Documentation
Loading...
Searching...
No Matches
org.firstinspires.ftc.teamcode.Util.IntegralScan Class Reference

Classes

class  IntegralScanResult
 

Public Member Functions

 IntegralScan (double a, double b, double eps, ToDoubleFunction< Double > f)
 
IntegralScanResult scan ()
 Returns samples of (g(t) = \int_a^t f(x) \, dx) for various values (a \leq t \leq b).
 

Member Function Documentation

◆ scan()

IntegralScanResult org.firstinspires.ftc.teamcode.Util.IntegralScan.scan ( )

Returns samples of (g(t) = \int_a^t f(x) \, dx) for various values (a \leq t \leq b).

The sampling points are chosen adaptively using the algorithm adaptsim from Gander and Gautschi (more accessible link).

Parameters
[a](a)
[b](b)
[f](f(x))
[eps]desired error in the length approximation (g(b))

The documentation for this class was generated from the following file: