Description Usage Arguments Value
View source: R/best_split_functions.R
Get a best_split_function from a gain_function
1 | best_split_function_from_gain_function(gain_function, optimizer, control)
|
gain_function |
A function with argiument |
optimizer |
Optimization method to be used to find an (approximate) of the maximum of the gain function.
One of |
control |
Control parameter as returned by hdcd_control |
A function with formal arguments x
, start
, end
, split_candidates
and lambda
that
uses the optimizer specified to search for a maximum of the gain_function on the split_candidates
given a segment
(start
, end], data x
and a tuning parameter lambda
and returns a list with arguments gain
, max_gain
,
best_split
and possible permutation_test
and pval
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.