fit_edwards_optim | R Documentation |
The coefficients calculated by Edwards (1997) and returned by
edwards_coefs()
were designed to produce reasonable results
for several general cases, however each source water will have
a set of empirical coefficients that produce more accurate
predictions than the general case. This function calculates
the optimal coefficients given a test set of known initial
values (DOC)
fit_edwards_optim( data, initial_coefs = edwards_coefs("Al"), optim_params = list() ) fit_edwards_coefs(coefs, data = edwards_data("empty")) ## S3 method for class 'edwards_fit_optim' coef(object, ...) ## S3 method for class 'edwards_fit_coefs' coef(object, ...) ## S3 method for class 'edwards_fit_base' predict(object, newdata = NULL, ...) coagulate_grid( object, DOC, UV254, dose = seq(0.01, 2, length.out = 50), pH = seq(5, 8, length.out = 50) ) ## S3 method for class 'edwards_fit_base' fitted(object, ...) ## S3 method for class 'edwards_fit_base' residuals(object, ...) ## S3 method for class 'edwards_fit_base' tidy(x, ...) ## S3 method for class 'edwards_fit_base' glance(x, ...) ## S3 method for class 'edwards_fit_base' print(x, ...) ## S3 method for class 'edwards_fit_base' plot(x, ...)
data |
A data frame with columns
|
optim_params |
Additional arguments to be passed to |
coefs, initial_coefs |
A set of initial coefficients from which to
start the optimisation. Most usefully one of the coefficient
sets returned by |
object, x |
A fit objected created with |
... |
Not used. |
newdata |
A data frame with columns
|
DOC |
The initial DOC concentration (mg/L). |
UV254 |
The absorbance of UV254 (1/cm). With |
dose |
The coagulant metal concentration (Al3+ or Fe3+) in mmol/L. |
pH |
The pH of coagulation. |
An S3 of type "edwards_fit_optim" with components:
References to inputs.
The fit object returned by stats::optim()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.