Please note that this Tarsier tool is distributed with NO WARRANTY.
This page contains the following information on this Tarsier Tool.
How to Install
How to Uninstall
Software for Download
Usage Instructions To use the Linear Interpolation Function:
The following instructions assume you know how to use functions in Calc or Excel. In Excel my linear interpolation function can be found either under the "All" or under "User defined" in the function menu, but in Calc you will have to type the function name.
The function has three mandatory arguments and two optional arguments.
- specify the range of cells containing the known X values, (argument known_x)
- specify the range of cells containing the known Y values, (argument known_y)
- specify the X value you are interpolating against, (argument x_Value)
With this information the function will perform linear interpolation to find the specified value, or extrapolate to find the Y value if the X value is outside the range of known X values.
Additionally, you can specify the following options;
- what value should be returned if the X value interpolated against is outside the range of known X values, (argument cutOffAction, 0 = extrapolate; 1 = cut off at the nearest known value, 2 = return #NUM! or -999 in Calc)
- use step interpolation, (argument step, a binary value, false = perform linear interpolation, true = perform stepwise interpolation)
The known X values must be in numerical order, minimum to maximum.
How to specify the result calculated by the function The values in the Example result column are calculated using the following data.
|Description||x_value||cutOff||step||Example formula (Excel Calc)||Result|
|Compulsory arguments - within X value range||1.5||Not specified||Not specified||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;1.5)||2.7|
|Compulsory arguments - outside X value range||-1.0||Not specified||Not specified||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;-1.0)||0.5|
|6.0||Not specified||Not specified||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;6.0)||35.5|
|Cut off if outside X value range||-1.0||1||Not specified||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;-1.0;1)||0.8|
|Return error if outside X value range||-1.0||2||Not specified||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;-1.0;2)||-998|
|Stepwise interpolation - within X value range||1.5||0, 1, 2||True||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;1.5;0;True)||1.1|
|2.001||0, 1, 2||True||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;2.001;0;True)||4.3|
|3.9999||0, 1, 2||True||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;3.9999;0;True)||9.9|
|Stepwise interpolation - outside X value range||-1.0||0||True||=LinearInterpolator($A$2:$A$7;$B$2:$B$7;-1.0;0;True)||0.8|
Note, constant values shown in the example equations above can of course be replaced by cell references, definitions, etc...
Error Messages When using the Linear Interpolation Function, it will return an error code in the following circumstances;
|2.||The specified cutoff is invalid, i.e. not in the range 0 to 2.||-997||#N/A|
License Fee This "Tariser Tool" is licenced under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. There is no license fee for personal use of this tool. However, if you are using this software within software that you are developing and intend to sell, please e-mail me for details of the license fee.
How to Install Instructions for OpenOffice.org Calc (version 4) Will work for LibreOffice 3
Instructions for Microsoft Excel
How to Un-install Instructions for OpenOffice.org Calc (version 4) work for LibreOffice 3
Instructions for Microsoft Excel
|1.0||26-Aug-15||Initial Version Released, based on Rev 1.0 of my Excel version|
|1.0||10-Nov-03||Initial Version Released|
Software for Download
|OS X 10||Apache OpenOffice 4 Calc||tt03-002.ods (11.7k)||Ubuntu 12.04||LibreOffice 3|
|Win 2000||Excel 97||TT03-002.xla (37.9k)|
|Win XP Pro||Excel 2003|
|Win 7||Excel 2007|
Please let me know if you have used my Linear Interpolation Function, successfully or not, on any other Operating System and spreadsheet combination.Source Code In accordance with the GNU General Public License the Microsoft Excel Add-in used to distribute this Tarsier Tool is not password protected allowing you to view and modify it if you require. You should review the GNU GPL to determine your rights to distribute this software and be informed that this software is distributed with NO WARRANTY.
Frequently Asked Questions Currently there are no FAQ for this tool. If you have a question, please e-mail it to me. Please ensure that you identify that the question is about my Linear Interpolation Function (TT03-002).
Bug Reports If you suspect a bug in this Tarsier Tool, before contacting me, please check the FAQs and Bug Reports to see if it has already been identified. If it hasn't, e-mail me a description. Please ensure you identify the Tarsier Tool, (Linear Interpolation Function TT03-002), the operating system and spreadsheet program in the e-mail and include as much detail as possible; including a simple example application is always helpful! but make sure it does not contain proprietary or confidential information.
Currently there are no reported bugs for this Tarsier Tool.
Further Information This section will be updated with links to information relating to the principles behind and the uses of this Tarsier Tool, as I become aware of them.