idPiecewiseLinear
Create a piecewise-linear nonlinearity estimator object
Syntax
NL = idPiecewiseLinear
NL = idPiecewiseLinear(Name,Value)
Description
creates a default piecewise-linear nonlinearity estimator object with 10 break points for estimating Hammerstein-Wiener models. The value of the nonlinearity at the break points are set toNL
= idPiecewiseLinear[]
. The initial value of the nonlinearity is determined from the estimation data range during estimation usingnlhw
. Use dot notation to customize the object properties, if needed.
creates a piecewise-linear nonlinearity estimator object with properties specified by one or moreNL
= idPiecewiseLinear(Name,Value
)Name,Value
pair arguments. The properties that you do not specify retain their default value.
Object Description
idPiecewiseLinear
is an object that stores the piecewise-linear nonlinearity estimator for estimating Hammerstein-Wiener models.
UseidPiecewiseLinear
to define a nonlinear function
, whereyandxare scalars, andθrepresents the parameters specifying the number of break points and the value of nonlinearity at the break points.
The nonlinearity function,F, is a piecewise-linear (affine) function ofx. There aren
breakpoints (xk,yk),k= 1,...,n, such thatyk= F(xk).Fis linearly interpolated between the breakpoints.
Fis also linear to the left and right of the extreme breakpoints. The slope of these extensions is a function ofxiandyibreakpoints. The breakpoints are ordered by ascendingx
-values, which is important when you set a specific breakpoint to a different value.
There are minor difference between the breakpoint values you set and the values stored in the object because the toolbox has a different internal representation of breakpoints.
For example, in the following plot, the breakpoints arexk= [-2,1,4]and the corresponding nonlinearity values areyk= [4,3,5].
The valueF(x)
is computed byevaluate(NL,x)
, whereNL
is theidPiecewiseLinear
object. When usingevaluate
, the break points have to be initialized manually.
ForidPiecewiseLinear
object properties, seeProperties.
Examples
Input Arguments
Name-Value Arguments
Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN
, whereName
is the argument name andValue
is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.
Before R2021a, use commas to separate each name and value, and encloseName
in quotes.
UseName,Value
arguments to specify additional properties of theidPiecewiseLinear
nonlinearity. For example,NL= idPiecewiseLinear('NumberofUnits',5)
creates a piecewise-linear nonlinearity estimator object with 5 breakpoints.
Properties
idPiecewiseLinear
object properties include:
|
Number of breakpoints, specified as an integer. Default: |
|
Break points,xk, and the corresponding nonlinearity values at the breakpoints,yk, specified as one of the following:
When the nonlinearity object is created, the breakpoints are ordered by ascending Default: |
|
Option to fix or free the values in the mapping object, specified as a logical scalar. When you set an element of Default: |