two_step_search: Two step search optimisation algorithm

Description Usage Arguments Value

View source: R/optimizer.R

Description

Find an (approximate) maximum of gain_function by repeatedly fitting and evaluating.

Usage

1
two_step_search(gain_function, split_candidates, n, control)

Arguments

gain_function

closure

split_candidates

An array of indices where gain function is (possibly) evaluated.

n

total number of observations

control

Control parameter as returned by hdcd_control

Value

A list with entries gain, max_gain, best_split, permutation_test and pval


mlondschien/hdcd documentation built on Jan. 5, 2021, 11:26 p.m.