bisec_fit: General-purpose fit

View source: R/bisec-fit.R

bisec_fitR Documentation

General-purpose fit

Description

you can almost fit any function you want

Usage

bisec_fit(data, ff, extra, space, partition, times, trim, enlarge)

Arguments

data

numeric matrix. data[i, 1] gives xi and data[i, 2] gives yi

ff

function. ff(para, extra) gives the function f() that y=f(x) where the range of para make a space.

extra

numeric vector. see ff

space, partition, times, trim, enlarge

see bisec_optim

Details

even complex coupled differential equation that you can't get a analytic solution is ok.

Value

list of list.

  1. information about subrange1

    1. R^2 using median of subrange1 as para for ff

    2. subrange1

  2. information about subrange2

    1. R^2 using median of subrange2 as para for ff

    2. subrange1

  3. ...

to do

1. support multivariate function

See Also

biosec_optim

Examples

bisec_fit(data1, f_protein, extra11, space1, 2, 5, 1/3, 1)
bisec_fit(data2, f_AI2_out, extra2, space2, 2, 5, 4, 1)


dongzhuoer/bisecpp documentation built on May 20, 2022, 10:52 a.m.