synthetic_data_linear: synthetic linear data base on the graph

Description Usage Arguments Value Examples

Description

Synthetic linear data base on the graph. The noises are sampled from the super-gaussian distribution. The coefficients are sample from U(-1,-0.5),U(0.5,1)

Usage

1
synthetic_data_linear(G, sample_num, ratio = 1, return_noise = FALSE)

Arguments

G

An adjacency matrix.

sample_num

The number of samples

ratio

The noise ratio It will grow or shrink the value of the noise

return_noise

Whether return the noise of each nodes for further analysis.

Value

Return a synthetic data

Examples

1
2
G<-matrix(c(0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0),nrow = 4,ncol = 4)
data=synthetic_data_linear(G,100)

DMIRLAB-Group/SELF documentation built on May 28, 2019, 12:18 p.m.