for univariate, you are allowed to pass in a vector of breakpoints and a vector of function values at those points. bivariate forces you to pass in a function, but it should allow the matrix of values analogously to univariate. note that some patterns will be unavailable (BestFit).