Learn R Programming

JointNets (version 2.0.1)

generateSampleList: function to generate a list of samples from simulatedGraph result

Description

function to generate a list of samples from simulatedGraph result

Usage

generateSampleList(simulate, n)

Arguments

simulate

result from simulateGraph

n

a vector of corresponding size to indicate number of samples for each task

Value

a list of length(n) data matrices

Details

if n is c(100,200,300) and p is 20, the function will return a list of 3 data matrices of size (100x20,200x20,300x20)