ContentTop, Main, Index
This package provides tcl wrapper for interpolation and approximation procedures. The sources of procedures are:
Installation and dependenciesTop, Main, Index
For building you need:
For run you also need:
To build run
./configure make sudo make install
If you have different versions of Tcl on the same machine, you can set the path to this version with -with-tcl=path
flag to configure script.
For Windows build it is strongly recommended to use MSYS64 UCRT64 environment, the above steps are identical if you run it from UCRT64 shell.
There are prebuilt packages that contains .so/.dll files, tcl code and tests for Windows and Linux.
Supported platformsTop, Main, Index
I've tested it on:
- Kubuntu 24.04 with Tcl 9 and Tcl 8.6.15
- Windows 11 in MSYS64 UCRT64 environment with Tcl9
DocumentationTop, Main, Index
You can find some documentation here
Interactive helpTop, Main, Index
All public procedures has interactive help. To get information about procedure and its arguments call it with -help
switch:
package require tclinterp namespace import ::tclinterp::interpolation::* near1d -help
Does nearest one-dimensional interpolation. Returns: list of interpolated dependent variable values, 'yi', at 'xi'. Can accepts unambiguous prefixes instead of switches names. Accepts switches only before parameters. Switches: -x - Required, expects argument. List of independent variable (x) values, must be strictly increasing. -y - Required, expects argument. List of dependent variable (y) values. -xi - Required, expects argument. list of independent variable interpolation (xi) values.
Best to do it in interactive console, see tkcon