以前在学计算机网络的时候经常见到这个词,大概是测量尺度的意思。比如在网络中,衡量主机之间的关系的metric就可以是跳数。
后来在软件工程中也看到了这个词,这里是衡量软件安全程度的尺度。
Metrics are a quantitative indicator of the degree to which a system component or processes possess a given attribute. Good metrics meet the SMART(i.e., specific, measurable, attainable, repeatable, and time-dependent) criteria. Metrics are typically derived from measurements using statistical techniques to uncover the relationships.
看到这里,metric的选取还需要一个SMART准则,几个单词的首字母凑起来正好是SMART。= =||