blend: Blend two impact matrices together.

Description Usage Arguments Details Value

View source: R/blend.R

Description

The blend operation inserts rows from a source impact matrix (typically corresponding to an impact matrix for a non-continuous source) into a target impact matrix (typically corresponding to a continuous source that does not operate at the same time as the non-continuous source). Blend also generates an impact matrix which is a zero matrix of the same dimensions as the source matrix, except for the selected rows.

Usage

1
blend(src, indices, target)

Arguments

src

Matrix corresponding to source group for which intermittent operation is simulated.

indices

Hours of operation (integer vector). Typically generated with hrs_rand

target

Matrix representing source group that does not operate when intermittent source does. By default this is the zero matrix (i.e., intermittent source may operate at same time as all other sources).

Details

Indices are intended to be a set of randomly generated operating hours created by hrs_rand (which may be created via make_simplan).

Value

Blended matrix. Has an attribute listing all of the hours for which a substitution was made. Existing attributes are carried over from target.


jlovegren0/aermod documentation built on Jan. 14, 2022, 8:06 a.m.