How to set the lower bound of extrapolation?
이전 댓글 표시
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
Star Strider
2012년 7월 17일
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
2012년 10월 30일
charles alexander
2021년 7월 29일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!