get_gl_rule {SimSurvNMarker}R Documentation

Get Gauss–Legendre Quadrature Nodes and Weights

Description

Computes Gauss–Legendre Quadrature nodes and weights.

Usage

get_gl_rule(n)

Arguments

n

number of nodes.

Examples

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)))

[Package SimSurvNMarker version 0.1.3 Index]