scale_center: (Mean) Centering

View source: R/deepScaling.r

scale_centerR Documentation

(Mean) Centering

Description

(Mean) Centering

Usage

scale_center(x, use_attr = TRUE, invert = FALSE, const = NULL)

Arguments

x

A numeric object whose elements should be scaled thru centering.

use_attr

A logical value indicating whether the scaling factor const is stored as named attribute of the scaled x.

invert

A logical value indicating the direction of scaling. If set to TRUE, x is already scaled and scaling will be inverted.

const

A constant value that is subtracted from all values in x. By default (NULL), the mean of x is used as the constant value.

Value

Transformed x with (mean) centered values.

See Also

scaling.

Other Scaling: scale_dataset(), scale_log(), scale_minmax(), scale_train_test(), scale_zscore(), scaling()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.