fit_wafer: Fit curves to a wafer

Description Usage Arguments Value Examples

View source: R/wafer_fit.R

Description

Fits curves to a wafer and returns the curve parameters and resulting cost for both forward and backwards curves. Wafers can be validated and transformed before fitting. Devices are fitted in parallel automatically.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
trans_device(wafer)

validate_device(wafer)

trans_filter_device(wafer, validate = validate_device, trans = trans_device,
  verbose = TRUE)

fit_wafer(wafer, trans = trans_device, validate = validate_device,
  cost_func = area_between_curves, dev_curve = curve_piecewise,
  initparams = NULL, maxit = 1e+05, verbose = TRUE, plot = FALSE)

Arguments

wafer

Data from a single wafer

validate

(Optional) Wafer validate function

trans

(Optional) Wafer ransform function

verbose

(Optional) Print verbose output (Default: TRUE)

cost_func

(Optional) Cost function

dev_curve

(Optional) Model device voltage curve

initparams

(Optional) Inital parameter estimation

maxit

(Optional) Maxiumum number of iterations for use in optimiser (Default: 10000)

plot

(Optional) Plot all devices and fitted curves (Default: FALSE)

Value

A data.frame consisting of the fields:

id

Wafer ID

name

Each device on the wafer

cost

The value of the cost function for each device

direction

Whether the curve direction is forward or backward

X1 ... X6

The parameters characterising the curve

Examples

1
2
3
4
5
data(voltage, package="voltagefit")
## Not run: 
fit_wafer(wafer6138)

## End(Not run)

csgillespie/voltagefit documentation built on May 14, 2019, 12:23 p.m.