lsq_mb: Least square with mass balance penalty

Description Usage Arguments Value

View source: R/mass-balance-optim.R

Description

Least square with mass balance penalty

Usage

1
lsq_mb(hat, obs, lambda, mus, sigmas, log.seasons, log.ann, N, sInd)

Arguments

hat

A vector of estimated flow in the transformed space.

obs

A vector of observed flow in the transformed space.

lambda

Penalty weight.

mus

A vector of means, one for each target.

sigmas

A vector of the standard deviations, one for each target.

log.seasons

A vector containing the indices of the seasons that are log-transformed.

log.ann

TRUE if the annual reconstruction is log-transformed.

N

The number of targets (number of seasons plus one for the annual reconstruction).

sInd

Indices of the seasons, i.e, 1...N-1

Value

Objective function value: least squares plus a penalty term.


ntthung/mbr documentation built on March 19, 2021, 6:33 a.m.