param
A logical scalar, if TRUE, the model is in parametric version, otherwise, a non-parametric one.
const
A numeric vector, specifies the value of all global variables, if param = T, then const = c(N,n,d,rh,r,K,alpha); if param=FALSE, then const = c(N,n,d,rh,r,K,sigma_sqare).