主要内容

CreateResponseFeature

Create new response feature for local model

    Description

    R = CreateResponseFeature (L, RFType) creates a response feature for the response feature type RFType.

    R = CreateResponseFeature (L, RFType, EvaluationPoint) creates a response feature for RFType at the evaluation point specified by EvaluationPoint.

    Use this method to create additional response features without refitting all local and global models.

    Input Arguments

    collapse all

    Local response, specified as an mbcmodel.localresponse object.

    Response feature type belonging to the set of alternative response features for the current local model, specified as a character vector.

    Note

    Use getAlternativeTypes to generate a list of possible response feature types to choose from for the local model.

    lm = lr.Model;                    % mbcmodel.localmodel object
    rf = lm.ResponseFeatures;         % mbcmodel.responsefeatures object
    types = getAlternativeTypes(rf);  % cell array of character vectors containing a list of response feature types.

    Evaluation point, specified as a row vector, with one element per input.

    Note

    An evaluation point must be specified for function evaluation response feature types, such as f(x).

    Output Arguments

    collapse all

    Response for local model, returned as an mbcmodel.response object.

    Version History

    Introduced in R2007b