Usage

Arguments

X1

matrix of functional variable

xind

index of functional variable

id

defaults to NULL if X1 is a matrix. identity variable if X1 is in long format.

leftWeight

one of c("mean", "first", "zero"). With left Riemann sums
different assumptions for the weight of the first observation are possible.
The default is to use the mean over all integration weights, "mean".
Alternatively one can use the first integration weight, "first", or
use the distance to zero, "zero".

Details

The function integrationWeights() computes trapezoidal integration weights,
that are symmetric. Per default those weights are used in the bsignal-base-learner.
In the special case of regular xind with equal distances all integration weights are equal.

The function integrationWeightsLeft() computes weights,
that take into account only the distance to the prior observation point.
Thus one has to decide what to do with the first observation.
The left weights are adequate for historical effects like in bhist.