Description
c++ function to compute exponential cumulation of information.
Usage
expcorrectC(mat, diffdate, lambda)
Value
A matrix corresponding to the mat argument with cumulated exponential decay
Arguments
- mat
A matrix where each column is a variable to be cumulated.
- diffdate
Number of days between each sojourn. NA for switch of patient and restart cumulation.
- lambda
A double to set the exponential cumulation.