Learn R Programming

gradDescent (version 3.0)

varianceDescaling: Variance/Standardization Revert Function

Description

A function to revert the value that has been done by variance/ . standardization scaling method.

Usage

varianceDescaling(dataSet, varianceParameter)

Arguments

dataSet

a data.frame that representing dataset (\(m \times n\)), where \(m\) is the number of instances and \(n\) is the number of variables where the last column is the output variable. dataSet must have at leas two columns and ten rows of data that contain only numbers (integer or float).

varianceParameter

a matrix that has value of variance scaling parameter, such as mean value and standard deviation value of data that can be used to restore the original value of dataset. This parameter is exclusively produced by varianceScaling function.

Value

a data.frame representing reverted dataset value

Details

This function changes the value of variance scaled dataset that produced by varianceScaling function and represented by data.frame object.

See Also

varianceScaling

Examples

Run this code
# NOT RUN {
##################################
## Revert Variance Scaling
## load R Package data
data(gradDescentRData)
## get z-factor Data
dataSet <- gradDescentRData$CompressilbilityFactor
fsr <- varianceScaling(dataSet)
rfsr <- varianceDescaling(fsr$scaledDataSet, fsr$scalingParameter)

# }

Run the code above in your browser using DataLab