R/hermite.h.polynomials.R

Defines functions hermite.h.polynomials

Documented in hermite.h.polynomials

hermite.h.polynomials <- function( n, normalized=FALSE )
{
###
###   This function returns a list with n+1 elements
###   containing the order k Hermite polynomials, Hk(x),
###   for orders k=0,1,...,n
###
###   Parameters
###   n = integer highest polynomial order
###   normalized = a boolean value.  if true, the polynomials are normalized
###
   recurrences <- hermite.h.recurrences( n, normalized )
   if ( normalized ) {
       h.0 <- sqrt( pi )
       p.0 <- polynomial( c( 1 / sqrt( h.0 ) ) )
       polynomials <- orthonormal.polynomials( recurrences, p.0 )
   }
   else
       polynomials <- orthogonal.polynomials( recurrences )
   return( polynomials )
   return( NULL )
}

Try the orthopolynom package in your browser

Any scripts or data that you put into this service are public.

orthopolynom documentation built on Oct. 3, 2022, 5:08 p.m.