模型可用于解释现实世界实体的数字元素的行为以及测量它们.为了帮助测量过程,映射模型还应该补充映射域的模型.模型还应指定这些实体如何与属性相关以及特征如何相关.
测量有两种类型;
直接测量
间接测量
这些测量值可以在没有任何其他实体或属性的情况下进行测量.
以下直接测量通常用于软件工程.
LOC的源代码长度
按经过时间测试目的的持续时间
通过计算缺陷在测试过程中发现的缺陷数量
程序员花在程序上的时间
这些测量可以根据任何其他实体或属性来衡量.
以下间接测量通常是用于软件工程.
The following indirect measures are commonly used in software engineering.
$$\small Programmer\:Productivity = \frac{LOC \: produced }{Person \:months \:of \:effort}$$
$\small Module\:Defect\:Density = \frac{Number \:of\:defects}{Module \:size}$
$$\small Defect\:Detection\:Efficiency = \frac{Number \:of\:defects\:detected}{Total \:number \:of\:defects}$$
$\small Requirement\:Stability = \frac{Number \:of\:initial\:requirements}{Total \:number \:of\:requirements}$
$\small Test\:Effectiveness\:Ratio = \frac{Number \:of\:items\:covered}{Total \:number \:of \:items}$
$\small System\:spoilage = \frac{Effort \:spent\:for\:fixing\:faults}{Total \:project \:effort}$
为了为项目分配适当的资源,我们需要预测工作量,时间和开发项目的成本.预测的测量总是需要一个数学模型,该模型将要预测的属性与我们现在可以测量的其他属性联系起来.因此,预测系统由数学模型和一组预测程序组成,用于确定未知参数和解释结果.