powered by
Computes Gauss–Legendre Quadrature nodes and weights.
get_gl_rule(n)
number of nodes.
library(SimSurvNMarker) get_gl_rule(4) get_gl_rule(25) # fast system.time(replicate(10000, get_gl_rule(10))) system.time(replicate(10000, get_gl_rule(100)))
Run the code above in your browser using DataLab