Description Usage Arguments Value Author(s) See Also Examples

View source: R/generate.benchmark.data.R

Generate functional dependencies for benchmarking tests of independence. This function can generate 8 types of functional dependence: linear, quadratic, cubic, two sine functions, x^(1/4), step function and a circular dependence.

1 | ```
generate.benchmark.data(typ, noises, n, project = FALSE, windx = 1, windy = 1)
``` |

`typ` |
decimal, which type of dependence to generate. 1: linear 2: quadratic 3: cubic 4: sine period pi/4 5: sine period pi/16 6: x^(1/4) 7: circle 8: step function |

`noises` |
vector of noise values to apply to the generated dependence. The noise is normally distributed. |

`n` |
decimal, size of sample to return. |

`project` |
boolean (default FALSE), wether to project the generated dependence onto a torus |

`windx` |
decimal, how many times the dependence should wind around the torus in x-direction. Only used if |

`windy` |
decimal, how many times the dependence should wind around the torus in y-direction. Only used if |

list with two elements

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

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

Sebastian D<c3><bc>mcke [email protected]

`generate.patchwork.copula`

for generating non-functional dependence and `run.tests`

for benchmarking tests of independence

1 2 3 | ```
#generate a quadratic dependence of 10 points with two noise levels 0.3 and 0.6
generate.benchmark.data(2,c(.3,.6),10)
plot(generate.benchmark.data(4,.2,1000))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.