mbcmodel.localmodel
Properties and methods for local model objects
Description
Use these properties and object functions to create and examine local model objects.
Creation
Description
creates an LMObj = mbcmodel.CreateModel.(LocalModelType,Inputs)mbcmodel.localmodel object of local model type
LocalModelType and inputs Inputs.
For a list of model types, see CreateModel.
Properties
This property is read-only.
Type of model objects to be returned to mbcmodel.project, specified as
a vector. model.Type returns the model type.
Note
Spaces and case in model Type are ignored.
The model type must be one in this table.
Type | Model Object |
|---|---|
| Polynomial | mbcmodel.linearmodel |
| Hybrid Spline | mbcmodel.linearmodel |
| RBF | mbcmodel.linearmodel |
| Hybrid RBF | mbcmodel.linearmodel |
| Polynomial-RBF | mbcmodel.linearmodel |
| Hybrid Spline-RBF | mbcmodel.linearmodel |
| Gaussian Process | mbcmodel.model |
| Free Knot Spline | mbcmodel.model |
| Transient | mbcmodel.model |
| User-Defined | mbcmodel.model |
| Neural Network | mbcmodel.model |
| Interpolating RBF | mbcmodel.model |
| Local Polynomial Spline | mbcmodel.localmodel |
| Local Polynomial with Datum | mbcmodel.localmodel |
| Local Polynomial | mbcmodel.localmodel |
| Local Hybrid Spline | mbcmodel.localmodel |
| Local Truncated Power Series | mbcmodel.localmodel |
| Local Free Knot Spline | mbcmodel.localmodel |
| Local Multiple Models | mbcmodel.localmodel |
| Local Growth | mbcmodel.localmodel |
| Local User-Defined | mbcmodel.localmodel |
| Local Transient | mbcmodel.localmodel |
| Local Average Fit | mbcmodel.localmodel |
You can get a list of types by using getAlternativeTypes. Use this
syntax.
Mlist = getAlternativeTypes(M)
In this syntax, M is an mbcmodel.model object.
Data Types: char | string
This property is read-only.
Status of model fit, specified as Not Fitted, Fitted, or
Best.
Data Types: char | string
This property is read-only.
Number of inputs to model, specified as a real positive scalar.
Data Types: double | single
This property is read-only.
Input training data, specified as a matrix. InputData is specified when
calling fit.
Data Types: double
This property is read-only.
Output or response data, specified as a matrix. OutputData is specified
when calling fit.
Data Types: double
Local model properties, specified as an mbcmodel.modelproperties
object. Every local model object has an mbcmodel.modelproperties
object. In this object, each local model type has specific properties, as described in
these tables.
Local Polynomial Properties
Property | Description |
|---|---|
| Order | Polynomial order (vector int: |
| InteractionOrder | Maximum order of interaction terms (int: |
| TransformInputRange | Transform inputs (Boolean) |
| ParameterNames | List of parameter names (read-only) |
| StepwiseStatus | Stepwise status {'Always','Never','Step'} (cell)
|
| Transform | Transform function (char) or empty ('') |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
{'None','MA(1)','AR(1)','AR(2)'}) |
Local Hybrid Spline Properties
Property | Description |
|---|---|
| Order | Spline and polynomial order (vector int:
|
| SplineVariable | Spline variable |
| SplineInteraction | Order of interaction between spline and polynomial (int:
[0,3]) |
| Knots: Position of knots (vector real) | ParameterNames: List of parameter names (read-only) |
| StepwiseStatus | Stepwise status {'Always','Never','Step'} (cell)
|
| Transform | Transform function (char) or empty ( |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
{'None','MA(1)','AR(1)','AR(2)'}) |
Local Polynomial Spline Properties
Property | Description |
|---|---|
| HighOrder | Polynomial order above knot (int: [2,Inf]) |
| LowOrder | Polynomial order below knot (int: |
| Transform | Transform function (char) or empty
( |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
{'None','MA(1)','AR(1)','AR(2)'}) |
| DatumType | Datum Type (enum: {'None','Maximum','Minimum','Linked'})
|
Local Polynomial With Datum Properties
Property | Description |
|---|---|
| Order | Polynomial order (int: |
| Transform | Transform function (char) or empty
( |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
|
| DatumType | Datum type (enum:
|
Local Free Knot Spline Properties
Property | Description |
|---|---|
| Order | Spline order (int: [0,Inf]) |
| NumKnots | Number of knots (int: |
| Transform | Transform function (char) or empty
( |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
|
Local Truncated Power Series Properties
Property | Description |
|---|---|
| Order | Polynomial order (int: 'Positive') |
| NumKnots | Number of knots (int: 'Positive') |
| Transform | Transform function (char) or empty ('') |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
{'None','MA(1)','AR(1)','AR(2)'}) |
Local Growth Properties
Property | Description |
|---|---|
| Model | Growth model (enum:
{'expgrowth','gomp','logistic','logistic4','mmf','richards','weibul'})
|
| AlternativeModels | List of growth models (read-only) |
| Transform | Transform function (char) or empty ('') |
| TransformBothSides | Transform both sides (Boolean) |
| CovarianceModel | Covariance Model (enum:
|
| CorrelationModel | Correlation Model (enum:
{'None','MA(1)','AR(1)','AR(2)'}) |
Local User-Defined Properties
Property | Description |
|---|---|
Model | Name of user-defined model (enum: |
AlternativeModels | List of registered user-defined models (read-only) |
Transform | Transform function (char) or empty
( |
TransformBothSides | Transform both sides (Boolean) |
CovarianceModel | Covariance model (enum:
|
CorrelationModel | Correlation model (enum:
|
Local Transient Properties
Property | Description |
|---|---|
| Model | Name of transient model (enum: |
| AlternativeModels | List of registered transient models (read-only) |
| Transform | Transform function (char) or empty
( |
| TransformBothSides | Transform both sides (Boolean) |
| CovarianceModel | Covariance model (enum:
|
| CorrelationModel | Correlation model (enum:
|
Local Multiple Models Properties
Property | Description |
|---|---|
| ModelCandidates | List of candidate models (cell) |
| SelectionStatistic | Selection statistic for automatic model selection (char). See the list for input names and descriptions. The list of valid statistics is the summary statistics in common with all model candidates. For example, if an interpolating RBF is one of the candidates, only RMSE is available. |
| AutomaticInputRanges | Use data range as model input ranges (Boolean) |
| Transform | Transform function (char) or empty ('') |
| Model Type | List of SelectionStatistic Inputs |
|---|---|
| Polynomial, Hybrid Spline, RBF, Hybrid RBF | 'PRESS RMSE','RMSE','GCV','Weighted
PRESS','-2logL','AIC','AICc','BIC','R^2','R^2 adj','PRESS
R^2','DW','Cp','cond(J)' |
| Neural Network | 'RMSE','R^2','R^2
adj','-2logL','AIC','AICc','BIC' |
| Free Knot Spline | 'PRESS RMSE','RMSE','GCV','Weighted
PRESS','-2logL','AIC','AICc','BIC','R^2','R^2 adj','PRESS
R^2','DW','Cp' |
| Interpolating RBF | 'RMSE' |
SelectionStatistic Input Argument | Description | |
|---|---|---|
'PRESS RMSE' | Predicted standard error | 'sqrt(PRESS/N)' |
'RMSE' | Root mean squared error | 'sqrt(SSE/(N-p))' |
'GCV' | Generalized cross-validation variance | 'N*SSE/(N-p)^2' |
'Weighted PRESS' | Weighted predicted standard error | 'sqrt(PRESS/(N-p-1))' |
'-2logL' | -2 * log likelihood | 'N*log(SSE/N)' |
'AIC' | Akaike information criteria | '-2logL + 2*(p+1)' |
'AICc' | Small sample Akaike information criteria | '-2logL + 2(p+1)*N/(N-p)' |
'BIC' | Bayesian information criteria | '-2logL + 2*log(N)*(p+1)' |
'R^2' | R^2 | '1 - SSE/SST' |
'R^2 adj' | Adjusted R^2 | '1 - SSE/SST*(N-1)/(N-p)' |
'PRESS R^2' | PRESS R^2 | '1 - PRESS/SST' |
'DW' | Durbin-Watson statistic | 'sum((e_i-e_{i+1})^2)/sum(e_i^2) ' |
'Cp' | Mallow's statistic | 'SSE/(SSEmax/(N-pmax)) - N + 2*p' |
'cond(J)' | Condition of regression matrix | 'cond(J)' |
Local Average Fit Properties
Property | Description |
|---|---|
| Model | [1x1 mbcmodel.linearmodel] |
| Transform | Transform function (char) or empty ('') |
Data Types: char | string
Fit algorithm for model, specified as an mbcmodel.model.FitAlgorithm
object.
FitAlgorithm is a property of mbcmodel.model and
of boundary model objects mbcboundary.AbstractBoundary and all
subclasses.
An mbcmodel.model.FitAlgorithm object is contained within the
FitAlgorithm property of an mbcmodel.model
object or mbcboundary object.
As an alternative to using CreateAlgorithm, you can assign the algorithm name
directly to the
algorithm.
B.FitAlgorithm.BoundaryPointOptions = 'Boundary Only';m.FitAlgorithm = 'Minimize PRESS';
To get a fitalgorithm object, F, from a model,
use this code.
M = mbcmodel.CreateModel('Polynomial', 4);
F = M.FitAlgorithmF = Algorithm: Least Squares Alternatives: 'Minimize PRESS','Forward Selection','Backward Selection','Prune' 1x1 struct array with no fields.
Model input, specified as an mbcmodel.modelinput object.
Model object name, specified as a character vector.
Data Types: char | string
Model output unit, specified as a vector.
Data Types: double | single
This property is read-only.
Response object in mbcmodel.project object, specified as an object.
This property is read-only.
Boolean indicating whether model is being edited, specified as
either true
(1) or false
(0).
Example: 0
Data Types: logical
Response features for local model object, specified as an mbcmodel.responsefeatures object. Each local model type has specific response
features.
Data Types: char | string
Object Functions
fit | Fit model or boundary model to new or existing data, and provide summary statistics |
SummaryStatistics | Summary statistics for response |
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)