How to set the lower bound of extrapolation?
Show older comments
Hi!
Is it possible to set a lower bound for extrapolating using the interp2 function? I am dealing with nitrogen concentrations, and a negative concentration cannot exist. However, currently the extrapolation results have negative values. So I do not want the extrapolation to go less than 0. I do not desire to set an upperbound limit.
Thanks! George
3 Comments
Star Strider
on 17 Jul 2012
Is ‘interp2’ producing below-zero values in its interpolation or in its extrapolation? (You have more control over its extrapolation range than interpolation.) What 'method' are you using with ‘interp2’?
George McFadden
on 30 Oct 2012
charles alexander
on 29 Jul 2021
yes, its is possible to set a lower bound.
you will need to find the value of c from the linear discriminant model.
extrapolating will be (c1+c2)/100*values less than 30,
find the percentage value of extrapolation, add the (percentage value to the value of extrapolation:c3).
(c1+c2)/c3*fill_value.
Accepted Answer
More Answers (0)
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!