Fast Bspline class 1.0 
Date Added: April 10, 2013  Visits: 249 


fastBSpline  A fast, lightweight class that implements nonuniform B splines of any order Matlab's spline functions are very general. This generality comes at the price of speed. For largescale applications, including model fitting where some components of the model are defined in terms of splines, such as generalized additive models, a faster solution is desirable. The fastBSpline class implements a lightweight set of Bspline features, including evaluation, differentiation, and parameter fitting. The hard work is done by C code, resulting in up to 10x acceleration for evaluating splines and up to 50x acceleration when evaluating of spline derivatives. Nevertheless, fastBSplines are manipulated using an intuitive, high level objectoriented interface, thus allowing Clevel performance without the messiness. Use CompileMexFiles to compile the required files. If mex files are not available, evaluation will be done in .m code, so you may still use the code if you can't use a compiler for your platform. B splines are defined in terms of basis functions: y(x) = sum_i B_i(x,knots)*weights_i B (the basis) is defined in terms of knots, a nondecreasing sequence of values. Each basis function is a piecewise polynomial of order length(knots)length(weights)1. The most commonly used Bspline is the cubic Bspline. In that case there are 4 more knots than there are weights. Another commonly used Bspline is the linear Bspline, whose basis function are shaped like tents, and whose application results in piecewise linear interpolation. The class offers two static functions to fit the weights of a spline: lsqspline and pspline. It includes facilities for computing the basis B and the derivatives of the spline at all points. Constructor: sp = fastBSpline(knots,weights); Example use: %Fit a noisy measurement with a smoothnesspenalized spline (pspline) x = (0:.5:10)'; y = sin(x*pi*.41.9)+randn(size(x))*.2; knots = [0,0,0,0:.5:10,10,10,10]; %Notice there are as many knots as observations %Because there are so many knots, this is an exact interpolant sp1 = fastBSpline.lsqspline(knots,3,x,y); %Fit penalized on the smoothness of the spline sp2 = fastBSpline.pspline(knots,3,x,y,.7); clf; rg = 2:.005:12; plot(x,y,'o',rg,sp1.evalAt(rg),rg,sp2.evalAt(rg)); legend('measured','interpolant','smoothed'); fastBSpline properties: outOfRange  Determines how the spline is extrapolated outside the range of the knots knots  The knots of the spline (read only) weights  The weights of the spline (read only) fastBSpline Methods: fastBSpline  Construct a B spline from weights at the knots lsqspline  Construct a leastsquares spline from noisy measurements pspline  Construct a smoothnesspenalized spline from noisy measurements evalAt  Evaluate a spline at the given points getBasis  Get the values of the underlying basis at the given points Btimesy  Evaluate the product getBasis(x)'*y dx  Returns another fastBSpline object which computes the derivative of the original spline Disclaimer: fastBSpline is not meant to replace Matlab's spline functions; it does not include any code from the Mathworks

License: Shareware  Size: 10 KB 
Development Tools

FAST CONVEX HULL ALGORITHM 1.0
Even if totally mcoded, this routine is particularly fast in computing convex hull of 2D points. In many cases seems to be much faster than the matlab library routine. The main reason is that, differently from convhull, this algorithm jumps the... 
10 KB  
Development Tools

Probabilistic Data Association Filters (PDAF)  a tracking demo 1.0
This code is a demo that implements multiple target tracking in 2 dimensions. It is inspired by work of Y. BarShalom related to Probabilistic Data Association Filters (PDAF).Main file "Structure_PDAF_Tracking_Demo.m" does the following:1.... 
10 KB  
Science

xyPoint System 1.0
'xyPoint System' is a plotting system which allows adding points on a canvas which supports the following scales: 'Log' scale, 'Simple' scale and 'Measurement Unit' scale. The application allows for a variety of operations like adding points to... 
2.88 MB  
Science

Bersoft Image Measurement for OS X (MAC) 1.0
Bersoft Image Measurement is an application for measuring digital images. To measure an image, simply click on the image to define control points. The program will automatically calculate the area, perimeter, angle, radius, or length, depending on... 
4.19 MB  
Science

Bersoft Image Measurement for Linux 1.0
Bersoft Image Measurement is an application for measuring digital images. To measure an image, simply click on the image to define control points. The program will automatically calculate the area, perimeter, angle, radius, or length, depending on... 
2.12 MB  
Science

Electronics Mech Maths and Computing 10
Electronics  DC Current flow  Basic Electronics  Resistor Value Test  Simple DC Circuits  Types of Switching  Variable Voltages  Ohm's Law  DC Voltage  DC Current  Series/Parallel Resistors  AC Measurements  AC Voltage and Current  AC... 
11.2 MB  
Development Tools

Multiple simulations in 2D 1.0
In reachability analysis, one is interested in computing the set of states that can be reach by the system from a set of initial states. A straightforward way to approximate this set is to simulate the system for all the boundary points of the... 
81.92 KB  
Multimedia

Bsplines 1.0
The package comprises of a graphical utility to place uniform Bspline control points and see how the Bspline is redrawn as control points or control point weights are adjusted, and functions to estimate Bsplines with known knot vector, given a... 
20.48 KB  
Science

Points On A Canvas 1.0
Points on a Canvas lets you measure the distance between any two clicked points on your screen. Sounds simple enough, right? Yes, but wait until you start diving deeper into all of the glorious features that await you in Points on a Canvas. It's... 
2.04 MB  
Mathematics

KLONK Map Measurement 15.2.1.6
Fast & Easy measure distances and areas on the ground on earth. Map Measurement uses lines and shapes to check one or several distances and estimate sizes of different features on Earth. With Map Measurement, you can measure the length with a... 
58.27 MB 
Scripts

Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers.... 
5.49 MB  
Scripts

B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Signup Account (Registration of account). Lead generation tools (for the sellers). Email verification to... 
5.49 MB  
Scripts

B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or... 
5.49 MB  
Scripts

Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start... 
5.49 MB  
Scripts

Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed... 
5.49 MB  
Development Tools

VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV. 
10 KB  
Development Tools

Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]... 
768 KB  
Development Tools

IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the ModelViewController (MVC) pattern. It provides the basic functionality developers need, without... 
51.2 KB  
Development Tools

7Zip for Script 4.42
7Zip is a file archiver with a high compression ratio.Features: High compression ratio in new 7z format with LZMA compression Supported formats: Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,... 
624.64 KB  
Development Tools

Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data crossclassified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a nonparametric... 
10 KB 