Learn R Programming

SimSurvNMarker (version 0.1.3)

get_gl_rule: 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

Run this code
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