| ??? 06/13/03 19:44 Read: times |
#48327 - RE: An issue on maths Responding to: ???'s previous message |
Well.....The table is currently convenient to index and interpolate within if the degrees are known. IE, subtract a base offset from degrees and divide by 5 provides an index to the entry.
However since you have a given sensor reading by "turning inside out" I mean performing a whole series of interpolations (linear or otherwise) that give you degrees entries for sensor reading that are spaced in an ordered manner. For example your table shows values from 62 to 490. Instead interpolate with a spreadsheet to values in the range from 50 to 500 and get corresponding degrees readings for sensor readings of 50, 100, 150, 200, 250 etc etc. Now in the target application these nicely spread sensor readings are in the first column of the table. To find the proper entry in the table you index with sensor reading - 50 divided by 50. This points to the N and N+1 entries between which you interpolate the degrees value you are trying to determine. Michael Karas PS....That is what "turning a table inside out" refers to. I have another expression as well that is "turning a table around on its ear". That one refers to the concept of turning a two dimensional table around so that there is an interchanging the rows and the columns. I'm sure that mathematicians have "proper" terms for these processes....but these are expressions that came up at one time or another in the past in working with other engineers and for some reason they have managed to stay in my brain. MJK |



