WeightedFusion

constructor(inputs: Array<DoubleSupplier>, weights: Array<Double>)

Construct a filter that fuses two weighted inputs together.

Note: inputs.length == weights.length

Parameters

inputs

array of input suppliers, such as sensor inputs

weights

mapping of parametric [0,1] multiplicative weights to apply to the sensor inputs, an example is if you have 2 inputs, and you trust them equally, setting both weights to 0.5 will make them equally important.