powerFitFun: Create function that calculates the power fit.

Description Usage Arguments Value See Also Examples

View source: R/turb.R

Description

Returns a function that computes the fitted log function of a set of points using powerFit.

Usage

1

Arguments

x

Vector containing x coordinates of the points.

y

Vector containing y coordinates of the points.

Value

Function that uses the fit parameters to estimate y.

See Also

powerFit

Examples

1
2
3
4
5
6
x <- 1:10
y <- 2.5 * x^0.3 + rnorm(10, sd=0.2)

fitfun <- powerFitFun(x, y)
plot(x, y, xlab='x', ylab='y')
lines(x, fitfun(x))

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.