View source: R/ucie_transformations.R
fit_transform | R Documentation |
Scales, rotates and transforms the data to best fit in the CIELAB colourspace. Wrapper around ucie:::FitColorsFunction()
fit_transform(dataset, rownames_col = NULL, center = TRUE)
dataset |
A data frame or matrix of 3D values. |
rownames_col |
Optional: name of column to ignore during calculations. |
center |
A boolean indicating whether data should be centered during the fitting
process. Improves performance, but requires |
dataset
can be a 2D or 3D matrix or data frame, with optional
rownames in the first column or a rownames_col
-defined column.
Returns a numeric vector with a scaling value (S), 3 rotation values
(RotL, Rota, Rotb), and 3 translation values (TrL, Tra, Trb) for use in transform_data()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.