The frozen guided tour

frozen_guided_tour(frozen, index_f, d = 2, max.tries = 25)

Arguments

frozen

matrix of frozen variables, as described in freeze

index_f

the index function to optimise.

d

target dimensionality

max.tries

the maximum number of unsuccessful attempts to find a better projection before giving up

See also

cmass, holes and lda_pp for examples of index functions. The function should take a numeric matrix and return a single number, preferrably between 0 and 1.

Examples

frozen <- matrix(NA, nrow = 4, ncol = 2)
frozen[3, ] <- .5
animate_xy(flea[, 1:4], frozen_guided_tour(frozen, holes()))
#> Converting input data to the required matrix format.
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Best was:  1.582 (0.781 away).  Trying again...
#> Using half_range 65