Be the first to rate this file! 6 Downloads (last 30 days) File Size: 2.81 KB File ID: #24829

IPF

by Matthew Roughan

 

23 Jul 2009

Performs a simple Iterated Proportional Fit (IPF).

| Watch this File

File Information
Description

IPF allows one to find a matrix S, close to an input matrix T, but such that the row sums of S are R, and the column sums of S are C.

Its useful in a range of tasks (I use it in traffic matrix problems), but is often used in statistics for examining independence assumptions in contingency tables.

See
http://en.wikipedia.org/wiki/Iterative_proportional_fitting
for more info (the verion implemented above is the RAS version from that page).

I have a more advanced version designed tofund S satisfying an arbitrary set of linear constraints, but its not quite in hand-out-able form, so ask me if you need it.

See internal documentation and ipf_test.m for details of how to use it.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Matthew Roughan 24 Jul 2009 10:59:50
traffic matrices Matthew Roughan 24 Jul 2009 10:59:50
fitting matrices Matthew Roughan 24 Jul 2009 10:59:50
estimation Matthew Roughan 24 Jul 2009 10:59:50

Contact us at files@mathworks.com