About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 113
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Jan Simon (32 other programs)
See full specifications

scripts default iconScaleTime (Scripts) Publisher's description

ScaleTime - fast linear matrix interpolation

ScaleTime - fast linear matrix interpolation

I have recorded timeseries of e.g. size [100'000 x 10] and cut out chunks of about 100 frames according to some events and normalize them to exactly 100 frames.
For this task, the direct approach with Matlab's INTERP1 works, but it is slow:
interp1(1:size(Y, 1), Y, Ti, '*linear')
Cutting Y to blocks of 1000 frames at first accelerates the computing, but encreases the complexity.

Therefore I've created the function ScaleTime for:
- linear interpolation
- equally spaced input data
- equally or non-equally spaced interpolation steps
- matrix input
- no handling of NaNs, no extrapolation.

To my surprise, ScaleTime is dramatically faster for the job mentioned above in comparison to INTERP1 (Matlab 7): M-verion: factor 170, MEX: factor 420! The usual speed gain for other input sizes is about 5 to 20 (see picture and table created by TestScaleTime).

The functions lininterp1f and qinterp1 from the FEX do not accept matrices and they are significantly slower than the MEX ScaleTime:
If you have installed these tools, their speed is compared in TestScaleTime.

Included: M-source, C-source.
Compilation: mex -O ScaleTime.c
Run TestScaleTime.m after compiling!
Please mail me if you need pre-compiled MEX files or in case of questions or problems.

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

ScaleTime (Scripts) Tags:

Click on a tag to find related softwares

Is ScaleTime (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.