toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.external
/
InterpolatedLookupTable
Interpolated
Lookup
Table
open
class
InterpolatedLookupTable
Performs spline interpolation given a set of control points.
Utility from FTCLib
Source
Since
1.0.0-pre
Members
Constructors
Interpolated
Lookup
Table
Link copied to clipboard
constructor
(
)
Creates a new instance of InterpolatedLookupTable to add values to.
Functions
add
Link copied to clipboard
open
fun
add
(
input
:
Double
,
output
:
Double
)
Adds a control point to the lookup table.
create
LUT
Link copied to clipboard
open
fun
createLUT
(
)
Creates a monotone cubic spline from a given set of control points.
get
Link copied to clipboard
open
fun
get
(
input
:
Double
)
:
Double
Interpolates the value of Y = f(X) for given X.
get
Max
Link copied to clipboard
open
fun
getMax
(
)
:
Double
get
Min
Link copied to clipboard
open
fun
getMin
(
)
:
Double
set
Link copied to clipboard
open
fun
set
(
input
:
Double
,
output
:
Double
)
Adds a control point to the lookup table.
test
Out
Of
Range
Link copied to clipboard
open
fun
testOutOfRange
(
input
:
Double
)
:
Int
Check if a given input will be out of range by this LUT.
to
String
Link copied to clipboard
@
NonNull
open
fun
toString
(
)
:
String