LegNorm {MissMech} | R Documentation |
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 |
Note
Legendre's polynomias on [0,1] are calculated.
Author(s)
Mortaza Jamshidian, Siavash Jalal, and Camden Jansen
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, doi:10.1093/biomet/31.1-2.191.
Examples
p <- LegNorm(c(5.2,11,15))
p$p3