主要内容

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

    LMObj = mbcmodel.CreateModel.(LocalModelType,Inputs) creates an mbcmodel.localmodel object of local model type LocalModelType and inputs Inputs.

    For a list of model types, see CreateModel.

    Properties

    expand all

    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.

    TypeModel Object
    Polynomialmbcmodel.linearmodel
    Hybrid Splinembcmodel.linearmodel
    RBFmbcmodel.linearmodel
    Hybrid RBFmbcmodel.linearmodel
    Polynomial-RBFmbcmodel.linearmodel
    Hybrid Spline-RBFmbcmodel.linearmodel
    Gaussian Processmbcmodel.model
    Free Knot Splinembcmodel.model
    Transientmbcmodel.model
    User-Definedmbcmodel.model
    Neural Networkmbcmodel.model
    Interpolating RBFmbcmodel.model
    Local Polynomial Splinembcmodel.localmodel
    Local Polynomial with Datummbcmodel.localmodel
    Local Polynomialmbcmodel.localmodel
    Local Hybrid Splinembcmodel.localmodel
    Local Truncated Power Seriesmbcmodel.localmodel
    Local Free Knot Splinembcmodel.localmodel
    Local Multiple Modelsmbcmodel.localmodel
    Local Growth mbcmodel.localmodel
    Local User-Definedmbcmodel.localmodel
    Local Transientmbcmodel.localmodel
    Local Average Fitmbcmodel.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

    PropertyDescription
    Order

    Polynomial order (vector int: {[0,Inf],2})

    InteractionOrder

    Maximum order of interaction terms (int: [0,Inf])

    TransformInputRange Transform inputs (Boolean)
    ParameterNamesList of parameter names (read-only)
    StepwiseStatusStepwise status {'Always','Never','Step'} (cell)
    TransformTransform function (char) or empty ('')
    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModelCorrelation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Hybrid Spline Properties

    PropertyDescription
    Order

    Spline and polynomial order (vector int: {[0,3],2})

    SplineVariableSpline variable
    SplineInteractionOrder of interaction between spline and polynomial (int: [0,3])
    Knots: Position of knots (vector real) ParameterNames: List of parameter names (read-only)
    StepwiseStatusStepwise status {'Always','Never','Step'} (cell)
    Transform

    Transform function (char) or empty ('')

    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModelCorrelation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Polynomial Spline Properties

    PropertyDescription
    HighOrderPolynomial order above knot (int: [2,Inf])
    LowOrder

    Polynomial order below knot (int: [2,Inf])

    Transform

    Transform function (char) or empty ('')

    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModelCorrelation model (enum: {'None','MA(1)','AR(1)','AR(2)'})
    DatumTypeDatum Type (enum: {'None','Maximum','Minimum','Linked'})

    Local Polynomial With Datum Properties

    PropertyDescription
    Order

    Polynomial order (int: [0,Inf])

    Transform

    Transform function (char) or empty ('')

    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModel

    Correlation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    DatumType

    Datum type (enum: {'None','Maximum','Minimum','Linked'})

    Local Free Knot Spline Properties

    PropertyDescription
    OrderSpline order (int: [0,Inf])
    NumKnots

    Number of knots (int: 'Positive')

    Transform

    Transform function (char) or empty ('')

    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModel

    Correlation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Truncated Power Series Properties

    PropertyDescription
    OrderPolynomial order (int: 'Positive')
    NumKnotsNumber of knots (int: 'Positive')
    TransformTransform function (char) or empty ('')
    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModelCorrelation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Growth Properties

    PropertyDescription
    ModelGrowth model (enum: {'expgrowth','gomp','logistic','logistic4','mmf','richards','weibul'})
    AlternativeModelsList of growth models (read-only)
    TransformTransform function (char) or empty ('')
    TransformBothSidesTransform both sides (Boolean)
    CovarianceModel

    Covariance Model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModelCorrelation Model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local User-Defined Properties

    PropertyDescription

    Model

    Name of user-defined model (enum: {'exponential'})

    AlternativeModels

    List of registered user-defined models (read-only)

    Transform

    Transform function (char) or empty ('')

    TransformBothSides

    Transform both sides (Boolean)

    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModel

    Correlation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Transient Properties

    PropertyDescription
    Model

    Name of transient model (enum: {'fuelPuddle'})

    AlternativeModelsList of registered transient models (read-only)
    Transform

    Transform function (char) or empty ('')

    TransformBothSidesTransform both sides (Boolean)
    CovarianceModel

    Covariance model

    (enum: {'None','Power','Exponential','Mixed'})

    CorrelationModel

    Correlation model (enum: {'None','MA(1)','AR(1)','AR(2)'})

    Local Multiple Models Properties

    PropertyDescription
    ModelCandidatesList of candidate models (cell)
    SelectionStatisticSelection 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.
    AutomaticInputRangesUse data range as model input ranges (Boolean)
    TransformTransform function (char) or empty ('')
    Model TypeList 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 ArgumentDescription
    '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

    PropertyDescription
    Model[1x1 mbcmodel.linearmodel]
    TransformTransform 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';
    
    
    Case and spaces are ignored.

    To get a fitalgorithm object, F, from a model, use this code.

    M = mbcmodel.CreateModel('Polynomial', 4);
    F = M.FitAlgorithm
    F = 
    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

    fitFit model or boundary model to new or existing data, and provide summary statistics
    SummaryStatisticsSummary statistics for response

    Version History

    Introduced before R2006a