Skip to contents

Computes a value based on a linear function.

Usage

fn_lin(t, m, b)

Arguments

t

Numeric value.

m

Numeric value for the slope coefficient.

b

Numeric value for the intercept coefficient.

Value

A numeric value based on the linear function.

Details

$$ f(t; m, b) = m \cdot t + b $$

Examples

library(flexFitR)
plot_fn(
  fn = "fn_lin",
  params = c(m = 2, b = 10),
  interval = c(0, 108),
  n_points = 2000
)