Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow BivariatePWLFunction to accept a matrix of values at breakpoint pairs #27

Open
chriscoey opened this issue Jul 10, 2018 · 2 comments

Comments

@chriscoey
Copy link
Contributor

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).

@AndreOlds
Copy link

I am facing the same issue.
Is there a quick manner to convert a matrix of 2D values into a function to enable using the methods implemented in this package?

Thanks

@joehuchette
Copy link
Contributor

It's not trivial, but also should be doable in a one or two dozen LOC: given input x, compute which domain triangle x lies upon, then compute the value of the affine function that passes through the corresponding breakpoint values.

I'm in the middle of a rewrite of the package which will make this easy to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants