curve_tanh: Tanh model voltage curve

Description Usage Arguments Value

View source: R/device_models.R

Description

Model voltage curve based on a tanh sigmoidal shape. The first derivatives with respect to each parameter can also be calculated.

Usage

1
curve_tanh(x, param)

Arguments

x

a range of values for which the model curve is evaluated

param

list consisting of 4 parameters for the curve function:

theta_1

Value of y at center of the curve

theta_2

Distance from the center of the curve to the top/bottom

theta_3

A measure of the steepness of the curve

theta_4

Value of x shift applied to the data

Value

A range of values, corresponding to the value of the tanh curve for the given parameters, over the provided range of x values.


csgillespie/voltagefit documentation built on May 14, 2019, 12:23 p.m.