softmaxnorm: Softmax Normalization

Description Usage Arguments Details Value Author(s) Examples

View source: R/softmaxnorm.R

Description

This is a function that applies softmax normalization to a matrix or dataframe.

Usage

1

Arguments

data

The datset to be normalized

Details

This normalization is so called because it reaches "softly" towards maximum and minimum value, never quite getting there. The transformation is more or less linear in the middle range, and has a nonlinearity at both ends. The output range covered is [0,1]. The algorithm removes the classes of the dataset before normalization and replaces them at the end to form the matrix again.

Value

softdata

original matrix normalized

Author(s)

Caroline Rodriguez and Edgar Acuna

Examples

1
2
3
4
5
6
7
#---- Softmax Normalization----
data(sonar)
sonar.sftnorm=softmaxnorm(sonar)
op=par(mfrow=c(2,1))
plot(sonar[,1])
plot(sonar.sftnorm[,1])
par(op)

dprep documentation built on May 29, 2017, 11:01 a.m.

Search within the dprep package
Search all R packages, documentation and source code