主要内容

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

getThresholds

类: slmetric.config.ThresholdConfiguration
命名空间: slmetric.config

(待删除)获取阈值对象的属性

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

说明

确定阈值配置对象所包含的阈值对象的属性。您还可以将此方法与 slmetric.config.ThresholdConfiguration.removeThresholds 方法一起使用,以识别并从 slmetric.config.ThresholdConfiguration 对象中删除阈值对象。

T = getThresholds(TH,metricid) 创建一个阈值对象或一个阈值对象数组。

示例

输入参数

全部展开

slmetric.config.ThresholdConfiguration 对象,您需要了解它所包含的阈值对象的信息。

模型度量或您创建的自定义模型度量的度量标识符。此参量为可选参数。如果您不指定 metricID,则会获得阈值配置对象所包含的所有阈值的信息。

示例: 'mathworks.metrics.SimulinkBlockCount'

数据类型: char

输出参量

全部展开

slmetric.config.Threshold 对象或与您指定的输入对象 slmetric.config.ThresholdConfiguration 对应的 slmetric.config.Threshold 对象数组。

示例

全部展开

使用 getThresholds 方法来识别属于 slmetric.config.ThresholdConfiguration 对象的 slmetric.config.Threshold 对象。

对于 slmetric.config.ThresholdConfiguration 对象 TC,请使用 getThresholds 方法。

getThresholds(TC)
1×2 Threshold array with properties:

    MetricID
    AppliesTo

slmetric.config.ThresholdConfiguration 对象 TC 包含两个 slmetric.config.Threshold 对象。

版本历史记录

在 R2018b 中推出

全部折叠