PSM.linear.rows

Indicate the stateVector rows used to run a linear PSM


Syntax



Description

obj = obj.rows(rows)

Indicate the state vector rows that should be used as input for the linear PSM when calling the “PSM.estimate” command. The input is a column vector with one element per slope/linear coefficient in the forward model. Uses the same state vector rows for each ensemble member and each ensemble in an evolving set.

obj = obj.rows(memberRows)

Indicate which state vector rows to use for each ensemble member. This syntax allows you to use different state vector rows for different ensemble members. The input is a matrix with one row per linear slope, and one column per ensemble member.

obj = obj.rows(evolvingRows)

Indicate which state vector rows to use for different ensembles in an evolving set. This syntax allows you to use different state vector rows for different ensembles in an evolving set. The input should be a 3D array of either size [nSlopes x 1 x nEvolving] or of size [nSlopes x nMembers x nEvolving]. If the second dimension has a size of 1, uses the same rows for all the ensemble members in a particular evolving ensemble. If the second dimension has a size of nMembers, allows you to use differents row for each ensemble member in each evolving ensemble.

rows = obj.rows

Returns the current rows for the PSM object

obj = obj.rows(‘delete’)

Deletes any currently specified rows from the linear PSM object.


Input Arguments

rows

column vector, linear indices [nSlopes]
The state vector rows that hold the variables required to run the linear PSM. Uses the same rows for all ensemble members and ensembles in an evolving set.

memberRows

matrix, linear indices [nSlopes x nMembers]
Indicates which state vector rows to use for each ensemble member. Should be a matrix with one row per linear slope and one column per ensemble member. Uses the same rows for the ensemble members in different evolving ensembles.

evolvingRows

3*D* array, linear indices [nSlopes x 1|*nMembers* x nEvolving]
Indicates which state vector rows to use for different ensembles in an evolving set. Should be a 3D array, and the number of elements along the third dimension should match the number of ensembles in the evolving set. If the second dimension has a length of 1, uses the same rows for all the ensemble members in each evolving ensemble. If the second dimension has a length equal to the number of ensemble members, allows you to indicate which state vector rows to use for each ensemble member in each evolving ensemble.

Output Arguments

obj

scalar linear PSM object
The linear PSM with updated rows

rows

linear indices, [nSlopes x 1|*nMembers* x 1|*nEvolving*]
The current rows for the linear PSM.