R/search-better.r
search_better.Rd
Search for a better projection near the current projection.
search_better(
current,
alpha = 0.5,
index,
tries,
max.tries = Inf,
...,
method = "linear",
cur_index = NA
)
starting projection
the angle used to search the target basis from the current basis
index function
the counter of the outer loop of the opotimiser
maximum number of iteration before giving up
other arguments being passed into the search_better()
whether the nearby bases are found by a linear/ geodesic formulation
the index value of the current basis
animate_xy(flea[, 1:6], guided_tour(holes(), search_f = search_better))
#> Converting input data to the required matrix format.
#> Old 1.581977
#> No better bases found after 25 tries. Giving up.
#> Final projection:
#> -0.269 0.767
#> 0.064 0.484
#> 0.337 0.277
#> 0.826 -0.034
#> 0.067 0.128
#> -0.350 -0.290
#> Using half_range 66