Collaboration diagram for DSPF_sp_nrand:
void | DSPF_sp_nrand (int size, float *vector, void *state) |
void DSPF_sp_nrand | ( | int | size, | |
float * | vector, | |||
void * | state | |||
) |
This function is used to fill an array with Gaussian normal distributed random numbers.These numbers are distributed assuming mean (mu) = 0 and standard deviation (sigma) = 1.
The output vector can be modified for an arbitrary mu and sigma by adding its contents by the desired value of mu and multiplying its contents by the desired value of sigma respectively as shown in the histogram below.
size | The size of the array to be filled. | |
vector | The array of type float which the user wants to fill with random values. | |
state | The array which was initialized with the "DSP_urand32_init" function and maintained (but NEVER modified) by the user between subsequent calls to this function. |