#include <it/vec.h>
Go to the source code of this file.
Defines | |
#define | source_uniform_01(K) source_uniform( K, 0, 1 ) |
Functions | |
bvec | source_binary (idx_t size, double p0) |
vec | source_uniform (idx_t size, double a, double b) |
ivec | source_uniform_int (idx_t size, int a, int b) |
vec | source_gaussian (idx_t size, double mean, double std) |
vec | source_pdf (idx_t size, double a, double b, it_function_t pdf, it_args_t args) |
ivec | source_memoryless (idx_t size, vec pdf) |
#define source_uniform_01 | ( | K | ) | source_uniform( K, 0, 1 ) |
Definition at line 72 of file source.c.
References it_randn(), and vec_new().
Referenced by channel_awgn(), and main().
Definition at line 102 of file source.c.
References is_valid_pdf(), it_assert, IT_EPSILON, it_rand(), ivec_new(), vec_cum_sum(), vec_delete(), vec_ins, and vec_length().
Referenced by main().
vec source_pdf | ( | idx_t | size, | |
double | a, | |||
double | b, | |||
it_function_t | pdf, | |||
it_args_t | args | |||
) |
Definition at line 88 of file source.c.
References it_randpdf(), and vec_new().
Referenced by main().
|
|