Function Descriptions
3.25 Median of a Real Valued Array of Floats (Preserved Inputs)
Description:
This module computes the median of a real valued array of floats. The input array is preserved.
If input array preservation is not required, use median_SP_RV() for better performance. This
function calls median_SP_RV() and memcpy_fast().
Header File:
FPU.h
Declaration:
float32 median_noreorder_SP_RV(const float32
*
x, Uint16 N)
Usage:
y = median_noreorder_SP_CV(x, N);
float32 *x
pointer to array of real input values
Uint16 N
size of x array
float32 y
the median of x[]
Alignment Requirements:
None
Notes:
1. This function simply makes a local copy of the input array, and then calls me-
dian_SP_CV() using the copy
2. The length of the copy of the input array is allocated at compile time by the constant
“K” defined in the code. If the passed parameter N is greated than K, memory
corruption will result. Be sure to recompile the library with an appropriate value
K >= N before executing this code. The library uses K = 256 as the default value.
Sep 10, 2012 58