Mercurial > repos > public > sbplib
comparison +sbp/InterpAWW.m @ 782:3c3280ebabb3 feature/interpolation
Add assertions on string input accOp
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 24 Jul 2018 20:16:00 -0700 |
parents | c923fe6197ff |
children |
comparison
equal
deleted
inserted
replaced
781:69ab0e69f972 | 782:3c3280ebabb3 |
---|---|
21 | 21 |
22 methods | 22 methods |
23 % accOp : String, 'C2F' or 'F2C'. Specifies which of the operators | 23 % accOp : String, 'C2F' or 'F2C'. Specifies which of the operators |
24 % should have higher accuracy. | 24 % should have higher accuracy. |
25 function obj = InterpAWW(m_C,m_F,order_C,order_F,accOp) | 25 function obj = InterpAWW(m_C,m_F,order_C,order_F,accOp) |
26 assertIsMember(accOp, {'C2F','F2C'}); | |
26 | 27 |
27 ratio = (m_F-1)/(m_C-1); | 28 ratio = (m_F-1)/(m_C-1); |
28 h_C = 1; | 29 h_C = 1; |
29 | 30 |
30 assert(order_C == order_F,... | 31 assert(order_C == order_F,... |