R/gridfunction.r

Defines functions gridfunction

################################################################################
##
##
## NGSSM: BAYESIAN ESTIMATION
##
##
################################################################################
##
##
#'@noRd
gridfunction<-function(npoints,linf,lsup){
npar=length(linf)
xgrid=matrix(0,npoints,npar)
for(i in 1:npar){
xgrid[,i]=seq(linf[i], lsup[i], length.out = npoints)
}
grid.l=data.frame(xgrid)
gridoutput=make.surface.grid(grid.l)
return(gridoutput[,])
}

################################################################################

Try the NGSSEML package in your browser

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

NGSSEML documentation built on Sept. 5, 2021, 5:36 p.m.