Skip to content

Understand what BinarySearch is doing #17

@llrs

Description

@llrs

The BinarySearch is strange I don't understand what it is doing, see example below, where the output is the same as the max(abs(x)) value

set.seed(45)
x <- rnorm(15702)
RGCCA:::BinarySearch(x, 1)
#> [1] 4.112402

The effect seems to take lower values as the sumabs increase:
effect of sumabs in BinarySearch

Created on 2018-11-07 by the reprex package (v0.2.1)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions