fn_lin: Linear function

View source: R/99_growth_curves.R

fn_linR Documentation

Linear function

Description

A basic linear function of the form f(t) = m * t + b, where m is the slope and b is the intercept.

Usage

fn_lin(t, m, b)

Arguments

t

A numeric vector of input values (e.g., time).

m

The slope of the line.

b

The intercept (function value when t = 0).

Details

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

Value

A numeric vector of the same length as t, giving the linear function values.

Examples

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

flexFitR documentation built on April 16, 2025, 5:09 p.m.