Consolidator Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: consolidator.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: John D`Errico (View more)

Consolidator script description:



Consolidator is a Matlab script for Mathematics scripts design by John D`Errico. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Consolidator consolidates common elements in x (may be n-dimensional), aggregating corresponding y.

Publisher review:
Consolidator consolidates common elements in x (may be n-dimensional), aggregating corresponding y. Consolidator has many uses. It was designed to solve an interpolation problem and a Delaunay problem, but I've added other uses too. It can serve as a tool which counts the number of replicates of each point, or as simply an implementation of unique(x,'rows'), but with a tolerance on that unique-ness.Interpolation fails when there are replicate x values. Often it is recommended to form the mean of y for the replicate x values, eliminating the reps. Consolidator does this, and allows a tolerance on how close two values of x need be to be considered replicates. x may have multiple columns, i.e., it works on multi-dimensional data. x may even be a character array.This same problem is seen both in interp1 and in griddata. Delaunay and delaunayn are also not robust when called with data that has replicates or near replicates. Example usages:% counting replicatesx = round(rand(100000,1)*2);[xc,yc] = consolidator(x,[],'count');[xc,yc]ans =0 251601 498442 24996% aggregate y for the unique elements in x% y = x(:,1) x(:,2) errorx = round(rand(100000,2)*2);y = sum(x,2) randn(size(x,1),1);[xc,yc] = consolidator(x,y,'mean');[xc,yc]ans =0 0 0.00540 1.0000 0.99050 2.0000 1.98951.0000 0 0.99571.0000 1.0000 1.99701.0000 2.0000 2.99882.0000 0 2.01362.0000 1.0000 2.99852.0000 2.0000 3.9891Alternate usage using a function handle:[xc,yc] = consolidator(x,y,@mean);The aggregation can also be of many types. Min, max, mean, sum, std, var, median, prod, as well as geometric and harmonic means, plus the simple count option. Use of a function handle allows forany aggregation the user may desire.Consolidator is very different from accumarray.Note that accumarray builds a potentially hugearray, filled with zeros. This array cannot be sparse in higher than 2 dimensions. Also, accumarray does not allow a tolerance. Its first argument MUST be an index. Finally, consolidator works on strings too. Requirements: ยท MATLAB Release: R14SP1
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

Apple prepares iPhone 5 and iOS 6

Apple prepares iPhone 5 and iOS 6

New information coming from some sources close to Apple confirming that the Cupertino giant is testing two different models of iPhone, called internal iPhone5, 1 and iPhone 5.2. Apparently, both devices have a screen of 3.95 inches and a resolution of 113

Posted on: 24 May 2012 08:36 by A. Brown

Windows 8 estimates: 500 million users in 2013

Windows 8 estimates: 500 million users in 2013

Microsoft expects to launch a new wave of optimism with Windows 8. In a recent statement, Steve Ballmer, chief executive at Microsoft, estimates that Windows 8 will reach a total of about 500 million users by the end of 2013.

Posted on: 24 May 2012 08:25 by A. Brown

SPREAD THE WORD

User Rating

Consolidator
Rating: 0.0 out of 5
Based on 0 ratings. 0 user reviews.

  • Currently 0.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5