Helper function to specify an integration grid used by the sequential reduction algorithm available through the argument integrate to MakeADFun.

SR(x, discrete = FALSE)

Arguments

x

Breaks defining the domain of integration

discrete

Boolean defining integration wrt Lebesgue measure (discrete=FALSE) or counting measure discrete=TRUE.