generate.patchwork.copula: Generate data from a non-functional dependence

Description Usage Arguments Value Author(s) Examples

View source: R/generate.patchwork.copula.R

Description

Generate data from a non-functional dependence called 'patchwork copula'. Like a copula the data is uniform in x and y but it has a dependence between x and yy that has a block like structure

Usage

1
2
3
generate.patchwork.copula(p = matrix(rbeta(bins * bins, alpha, beta), ncol = bins),
	 alpha = 0.01, beta = 1, c = 1, npoints = 320, bins = 20, returnmi = FALSE, 
	 plot = FALSE)

Arguments

p

matrix, starting mass distribution on the grid

alpha

decimal, parameter of beta distribution used for p (if p left as per default)

beta

decimal, parameter of beta distribution used for p (if p left as per default)

c

decimal, concentration factor (default 1), used to stabilize mutual information estimation

npoints

decimal, sample size

bins

decimal, number of bins of the bins*bins grid

returnmi

boolean, whether to return the mutual information

plot

boolean, whether to plot the dependence

Value

list with the following elements

x

matrix of x-coordinates, each column corresponds to a noise level from noises

y

matrix of y-coordinates, each column corresponds to a noise level from noises

mi

mutual information of the dependence, only return if returnmi is set to TRUE

Author(s)

Sebastian D<c3><bc>mcke duemcke@mpipz.mpg.de

Examples

1


knnIndep documentation built on May 19, 2017, 2:10 p.m.
Search within the knnIndep package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.