Home > By category > Scripts >Communication > ScaleTime



ScaleTime

  • Downloads: 
  • Views: 
  • Rating:

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:
http://www.mathworks.com/matlabcentral/fileexchange/8627
http://www.mathworks.com/matlabcentral/fileexchange/10286
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.

Free download from Shareware Connection - ScaleTime - fast linear matrix interpolation

Publisher: Jan Simon | License: Freeware | Price: 0.00
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 26-06-2013 | Rating: 0 | Title: ScaleTime

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/25463/1/ScaleTime.zip

More downloads from ScaleTime publisher Jan Simon:

DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM

FilterM - FilterM, FiltFiltM: Fast digital filter

strncmpr - Compare last N chars of strings or cell strings

Patch FILTFILT - If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column.

fSGolayFilt - fSGolayFilt is a fast polynomial smoothing filter for uniformly spaced signals

ScaleTime keywords:
ScaleTime related downloads:

Full Speed - Full Speed allows yo to get faster internet performance from your current

typecast and typecastx C-mex functions - TYPECAST and TYPECASTX are mex functions intended to mimic the MATLAB intrinsic typecast function with extensions.

One Cat Picture Printer - Drag and Drop picture printing using a thumbnail index and simple layouts

signal envolop - This is just a file which uses the familiar functions which is available in matlab itself.

Easy Picture Email - Easy Picture Email creates and sends pictures in your email without attachments.

Shareware Connection periodically updates pricing and software information of 'ScaleTime' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'ScaleTime' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of ScaleTime.

New Reviews

SeaMonkey, Portable Edition - Using the Internet has become a necessity for a majority of people, including those who do not use a PC regularly. To browse web, stream video or download online content, people often resort to using various third party apps. For example, using ...

Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...

360 Internet Security - Using a computer without having capable Security software installed is equivalent to sleeping with your house’s main door wide open. Whether you use a PC at home or manage a network of computers at the workplace, PC security suite has ...

Device Doctor - Keeping the drivers of hardware components used in your PC is really important. Obsolete device drivers lead to a myriad of problems affecting PC performance. While advanced users may check for outdated drivers personally, this may not be an ...

Magican Monitor - Macs are famous for their superb stability and ease at multitasking. That explains why they enjoy a steady and growing user base, the steep price tag notwithstanding. However, prolonged usage can make even the most powerful iMac or Macbook ...

PhoXo - Even a few years back, it was mostly graphic design professionals or people involved in print media were seen using image editing applications. With digital camera prices nose-diving and mobile imaging reaching new heights, things have undergone ...

Bvckup - There is no denying the reality that computers have become a part and parcel of human existence. From education, work, entertainment and data storage, computers are required at every step of life. Safety of data is of paramount importance to PC ...

Quick Crypt - PC users have become more conscious and careful about privacy of their data these days, especially about the data they need to share with others. There are valid reasons for this trend. Instances of personal information theft and attacking are on ...

ArtSage - PC users often need to make use of third party applications for making slideshows. While Windows inbuilt utility for viewing images and running slideshows keeps getting better with time, for many users third party apps seem better option. If you ...

PhotoScape - Using photo editors is not limited to the circles of graphic designers and print media professionals anymore. Nearly every PC user has some or other image editing app installed in his or her PC. Given the rise of digital camera usage and smart ...




New Downloads

Ez Thumbtack Clone

Ez Thumbtack is designed to
launch an online market place
for professionals from
different walks of life.
Please try this ...

pplot

PPLOT is a graphical plot
layout and design tool for
both Matlab 4 and Matlab 5
(both PC and UNIX versions)

Rooh.it Instant
Highlighter: Save and Share
`parts` of web-pages

Add a highlighter pen to your
blog: anyone can then make
'highlights on any part of
your page' and automatically
post ...

Mobile Comments Signature

The Mobile Comments Signature
plugin uses an efficient
script to detect comments made
from a mobile browser and then
...

Formulation of Ybus by
singular transformation
method of an IEEE 14 bus
system

This programs explains the
formulation of Ybus by
singular transformation method
of an IEEE 14 bus system

Model Replay

These MATLAB files serve as a
graphical user interface for
using the APMonitor moving
horizon estimation (MHE)
feature

Code Verification using
RTDX

serve as an introduction to
using RTDX technology from
Texas Instruments with
Simulink for the purpose of
verifying that ...

Comment Location Tracker

Traces the IP of comment
leavers in WordPress on the
comments admin page.

BillyBen Ring

BB Rings can display your
links, with or without their
own category, your categories,
your page and your posts tags.

Generate coefficients for
Savitzky-Golay smoothing
filters

function c =
generate_savitzkyGolay_coef1D(
order,interval)

Newscoop

Newscoop is a web publishing
system that can bring
newspaper or magazine content
to the online world

EC Role Price

ecommerce plugin to have
different prices for different
roles and for each product.