View source: R/qts-sample-class.R
scale | R Documentation |
QTS Sample Centering and Standardization
scale(x, center = TRUE, scale = TRUE, ...)
## Default S3 method:
scale(x, center = TRUE, scale = TRUE, ...)
## S3 method for class 'qts_sample'
scale(
x,
center = TRUE,
scale = TRUE,
by_row = FALSE,
keep_summary_stats = FALSE,
...
)
x |
An object coercible into a numeric matrix or an object of class
|
center |
A boolean specifying whether to center the sample. If set to
|
scale |
A boolean specifying whether to standardize the sample once it
has been centered. Defaults to |
... |
Extra arguments passed on to next methods. |
by_row |
A boolean specifying whether the QTS scaling should happen for
each data point ( |
keep_summary_stats |
A boolean specifying whether the mean and standard
deviation used for standardizing the data should be stored in the output
object. Defaults to |
A list of properly rescaled QTS stored as an object of class
qts_sample
when keep_summary_stats = FALSE
. Otherwise a list with
three components:
rescaled_sample
: a list of properly rescaled QTS stored as an object of
class qts_sample
;
mean
: a list of numeric vectors storing the corresponding quaternion
Fréchet means;
sd
: a numeric vector storing the corresponding quaternion Fréchet
standard deviations.
x <- scale(vespa64$igp)
x[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.