Learn R Programming

MissMech (version 1.0.2)

LegNorm: Evaluating Legendre's Polynomials of Degree 1, 2, 3, or 4

Description

This function evaluates the values of Legendre polynomials of degrees 1 to 4 on [0,1] at a value(s) x.

Usage

LegNorm(x)

Arguments

x
A scaler or vector of values at which the Legendre's ploynomials are to be evaluated.

Value

The returned list has the following elements:
p1
p1 is value(s) of the Legendre's polynomial of degree 1 at x
p2
p2 is value(s) of the Legendre's polynomial of degree 2 at x
p3
p3 is value(s) of the Legendre's polynomial of degree 3 at x
p4
p4 is value(s) of the Legendre's polynomial of degree 4 at x

References

David, F. N. (1939). ``On Neyman's "smooth" test for goodness of fit: I. Distribution of the criterion Psi2 when the hypothesis tested is true,'' Biometrika, 31, 191-199.

Examples

Run this code
p <- LegNorm(c(5.2,11,15))
p$p3

Run the code above in your browser using DataLab