R/PolyCoeff.r

Defines functions polyCoeff

polyCoeff <- function(degree,polynomType,alpha,beta) {
	coeff <- c(0.0, 0.0, 0.0)
	if (polynomType == "HERMITE"){
		coeff <- HermitePolyCoeff(degree)
	} else if (polynomType == "JACOBI") {
	  coeff <- JacobiPolyCoeff(degree,alpha,beta)	  
	} else if (polynomType == "LEGENDRE"){ 
		coeff <- JacobiPolyCoeff(degree,0,0)
	} else if (polynomType == "LAGUERRE"){
		coeff <- LaguerrePolyCoeff(degree,alpha)	
	}
	return(coeff)
}

Try the GPC package in your browser

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

GPC documentation built on May 30, 2017, 12:50 a.m.