histogram
histogram
Synopsis
#include <stats.h>
void histogramf(a,c,max,min,n,m)
const float a[];
int c[];
float max;
float min;
int n;
int m;
void histogram_fr16(a,c,max,min,n,m)
const fract16 a[];
int c[];
fract16 max;
fract16 min;
int n;
int m;
Description
The
histogram
contains
samples, and stores the result in the output vector
n
The minimum and maximum value of any input sample is specified by
and
, respectively. These values are used by the function to calcu-
min
max
late the size of each bin as
output vector
c
Any input value that is outside the range
boundaries of the output vector and will be discarded.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* Pointer to input vector a
/* Pointer to output vector c
/* Maximum value of the bin
/* Minimum value of the bin
/* Number of input samples
/* Number of bins
/* Pointer to input vector a
/* Pointer to output vector c
/* Maximum value of the bin
/* Minimum value of the bin
/* Number of input samples
/* Number of bins
function computes a histogram of the input vector
(max – min) / m
.
DSP Run-Time Library
, where
is the size of the
m
will exceed the
[ min, max )
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
that
a
c
4-75
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?