主要内容

本页采用了机器翻译。点击此处可查看英文原文。

getMetricMetaInformation

类: slmetric.Engine
命名空间: slmetric

(待删除)获取度量元信息

以后的版本中将会删除度量仪表板用户界面、metricdashboard 函数、slmetric 包 API 以及相应的自定义项。有关详细信息,请参阅从度量盘迁移到模型可维护性仪表盘

语法

metaInfo = getMetricMetaInformation(metric_engine,metricID)

说明

metaInfo = getMetricMetaInformation(metric_engine,metricID) 返回与 metricID 对应的 slmetric.metric.MetaInformation 对象。

输入参数

全部展开

度量引擎,指定为 slmetric.Engine 对象。

度量标识符,指定为字符向量或字符串标量。您可以通过在度量引擎对象上调用 slmetric.metric.getAvailableMetrics 来获取可用的度量标识符。

数据类型: char | string

输出参量

全部展开

度量的元信息,以 slmetric.metric.MetaInformation 对象的形式返回。

有关详细信息,请参阅slmetric.metric.MetaInformation

示例

全部展开

获取高完整性检查合规性度量的元信息。该度量的度量 ID 为 mathworks.metrics.ModelAdvisorCheckCompliance.hisl_do178

创建一个 slmetric.Engine 对象。

metric_engine = slmetric.Engine();

要获取元信息,请使用 getMetricMetaInformation 方法。

metaInfo = getMetricMetaInformation(metric_engine,...
'mathworks.metrics.ModelAdvisorCheckCompliance.hisl_do178')

高完整性检查合规性度量包含以下元信息:

metaInfo = 

  MetaInformation with properties:

                       Name: 'Model Advisor standards check compliance for High Integrity'
                Description: 'Metric that counts the percentage of checks that passed for the High Integrity Model Advisor standards check grouping.'
              MeasuresNames: {2×1 cell}
    AggregatedMeasuresNames: {2×1 cell}
                  ValueName: 'Checks Passed'
        AggregatedValueName: 'Checks Passed (incl. Descendants)'

版本历史记录

在 R2018b 中推出

全部折叠