dash.ensembleFilter.prior
Process the prior for a filter object
Syntax
Description
Processes options for priors for a filter. Returns the outputs for the operations collected in a cell. Also returns a string indicate the type of operation performed.
Returns the current prior and whichPrior.
Error checks the input prior and whichPrior and overwrites any previously existing prior. Returns the updated filter object.
[objCell, ‘delete’] = obj.prior(‘delete’)
Deletes any current prior and returns the updated filter object.
Input Arguments
header
string scalar
Header for thrown error IDs
Ye
numeric array [nSite x nMembers x nPrior]
Prior for the filter
whichPrior
vector, linear indices [nTime]
Indicates which prior to use in each time step.
Output Arguments
outputs
cell scalar
Varargout-style outputs
type
‘return’|’set’|’delete’
Indicates the type of operation
priorCell
cell vector [2] {X, whichPrior}
The current prior and whichPrior in a cell
objCell
cell scalar {obj}
The updated object in a cell