|
Algorithm 1 Sampling of causal data via forward model |
Input: Power spectra , noise variance , number of bins , desired number (As we draw the number of samples from Poisson distribution in each bin, we do not deterministically control the total number of samples) of samples
Output:N samples generated from a causal relation of either or
Draw a sample field from the distribution
Set an equally spaced grid with points in the interval :
Calculate the vector of Poisson means with
At each grid point , draw a sample from a Poisson distribution with mean :
Set
For each add times the element to the set of measured . Construct the vector
Draw a sample field from the distribution . Rescale f s.th.
Draw a multivariate noise sample from a normal distribution with zero mean and variance ,
Generate the effect data by applying f to and adding :
With probability return , otherwise return
|