toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.util
/
Filter
/
WeightedFusion
Weighted
Fusion
open
class
WeightedFusion
:
DoubleSupplier
Fuses weighted data inputs together to return a weighted fused average.
Members
Constructors
Weighted
Fusion
Link copied to clipboard
constructor
(
@
NonNull
inputs
:
Array
<
DoubleSupplier
>
,
@
NonNull
weights
:
Array
<
Double
>
)
Construct a filter that fuses two weighted inputs together.
Functions
get
As
Double
Link copied to clipboard
open
fun
getAsDouble
(
)
:
Double
Calculate a fused weighted average of the inputs.