-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmul_nor_sampling.h
More file actions
22 lines (17 loc) · 823 Bytes
/
mul_nor_sampling.h
File metadata and controls
22 lines (17 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by xixuan on 4/3/17.
//
#ifndef MUL_NOR_SAMPLING_H
#define MUL_NOR_SAMPLING_H
#define IDX(i, j, ld_i) (((j)*(ld_i))+(i))
void norm_transform_mat(double *result,
const double *covar_array,
int dim);
void draw_from_mul_gaussian(double *result, // pointer to the result
int size, // Dimensionality (rows)
int nn, // How many samples (columns) to draw
const double *normTransform_array, // transform mat
int random_seed = 1, // set random seed
bool show_result = false // show result when running
);
#endif //MUL_NOR_SAMPLING_H