back_trans: Back-transformation

Description Usage Arguments Value

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

Description

Transform the reconstructed values back to the flow space and convert to data.table

Usage

1
back_trans(hat, years, mus, sigmas, log.trans, N, season.names)

Arguments

hat

A vector of estimated flow in the transformed space.

years

A vector of all years in the study period

mus

A vector of means, one for each target.

sigmas

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

log.trans

A vector containing the indices of the columns to be log-transformed.

N

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

season.names

A character vector containing the names of the seasons

Value

A data.table with three columns: Q (the back-transformed streamflow), season, and year.


mbr documentation built on Feb. 16, 2021, 5:07 p.m.