Description Usage Arguments Value

View source: R/chernoff_bound.R

Calculates different values of shattering coefficient and delta, varying # of samples to study the chernoff bound of SLT.

1 | ```
chernoff_bound(rpart.tree, n_experimentations, epsilon)
``` |

`rpart.tree` |
rpart.tree. A Decision tree generated by rpart package. |

`n_experimentations` |
int. The # of experimentations and samples to run. |

`epsilon` |
float. The epsilon to be used in the delta calculation. |

No return value, the function plots the chernoff bound.

shatteringdt documentation built on March 3, 2021, 9:05 a.m.

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.