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
See full specifications

scripts default iconndhistc (Scripts) Publisher's description

function qHistogram = ndHistc (mData, vEdge1, vEdge2, ... )

function qHistogram = ndHistc (mData, vEdge1, vEdge2, ... )

* Input Arguments:

+ mData: nRecord by nDim 2-dimensional array of doubles
+ vEdge1, vEdge2, ... : nDim vectors of histogram edges

* Return value:

+ qHistogram: nDim-dimensional data cube
containing number of points in each cell
defined by histogram edges. For instance,
qHistogram(1,1,1,...) means number of data points
vEdge1(1) <= mData(:,1) < vEdge1(2) & ...
vEdge2(1) <= mData(:,2) < vEdge2(2) & ...
vEdge3(1) <= mData(:,3) < vEdge3(1) & ...
* Example
mRand = rand(1e6,5);
ve1 = linspace(0,1,5);
ve2 = linspace(0,1,6);
ve3 = linspace(0,1,7);
ve4 = linspace(0,1,8);
ve5 = linspace(0,1,9);
qHist = ndhistc(mRand, ve1, ve2, ve3, ve4, ve5);

* Comparison with ndhist.m (compiled using mcc -x ndhist)
+ 1e6 by 2 data -> 5 by 6
ndhist.m 79.49 sec
ndhistc.c 0.4610 sec

+ 1e6 by 5 data -> 5 by 6 by 7 by 8 by 9
ndhist.m 199.32 sec
ndhistc.c 2.4430 sec

==> More efficient if More data points (==rows) & Less dimensions (==columns)

System Requirements:

MATLAB 6.1 (R12.1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

ndhistc (Scripts) Tags:

Click on a tag to find related softwares

Is ndhistc (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.