basis_guided {spinifex} | R Documentation |
Solve for the last basis of a guided tour.
Description
Performs simulated annealing on the index function, solving for it's local extrema. Returns only the last identified basis of the optimization. A truncated, muted extension of tourr::save_history(guided_tour())).
Usage
basis_guided(data, index_f = tourr::holes(), d = 2, ...)
Arguments
data |
Numeric matrix or data.frame of the observations. |
index_f |
The index function to optimize.
|
d |
Number of dimensions in the projection space. |
... |
Optional, other arguments to pass to
|
Value
Numeric matrix of the last basis of a guided tour.
See Also
tourr::guided_tour
for annealing
arguments.
Other basis producing functions:
basis_half_circle()
,
basis_odp()
,
basis_olda()
,
basis_onpp()
,
basis_pca()
Examples
dat <- scale_sd(wine[, 2:6])
basis_guided(data = dat, index_f = tourr::holes())
basis_guided(data = dat, index_f = tourr::cmass(),
alpha = .4, cooling = .9, max.tries = 10, n_sample = 4)
[Package spinifex version 0.3.7.0 Index]