fit_models_to_x_y: Run a single least-squares fit

Description Usage Arguments Value Examples

View source: R/FIT-leastSquares.R

Description

This function fits a single scan using the models provided.

Usage

1
2
fit_models_to_x_y(models, x, y, control, brute_force = FALSE,
  brute_force_grid_size = 1)

Arguments

models

The models to use

x

The x data to fit

y

The y data to fit

control

The nls control parameters

brute_force

Should brute force the starting parameters

brute_force_grid_size

Number of parameters to try for every constraint during the brute force.

Value

The least-squares result

Examples

1
fit_models_to_x_y(models, x, y)

jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.