sigmoid: sigmoid

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Calculate the sigmoid for data given by x

Usage

1

Arguments

x

The object to apply sigmoid to. Types can be: Numeric, Double, Integer, Vector, Data Frame

Value

returns value is of type x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Numerical
# ---------
val <- 25.6548
sigmoid(val)

# Vector
# ------
vector <- c(9.6574, 13.52, 22.34)
sigmoid(vector)

# Data Frame
# ----------
df <- data.frame(column_1=c(9.6574, 3.52, 232.34), column_2=c(9.6574, 13.52, 22.43))
sigmoid(df)

ChaddFrasier/planetLearn documentation built on July 5, 2020, 2:32 a.m.