mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Date:2008-09-26T17:52:50.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@50 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
37 lines
2.1 KiB
Plaintext
37 lines
2.1 KiB
Plaintext
[[Property:title|Elementary and composite metrics]]
|
|
[[Property:weight|4]]
|
|
[[Property:uuid|ef89f3c3-180e-3390-74b5-d6d537921453]]
|
|
Some of our metrics will be elementary and some composite. An elementary metric is measured directly from the product or a project record:
|
|
|
|
{{definition|Elementary product metric, elementary process metric|<br/>
|
|
- An '''elementary product metric''' is a product metric whose values (integers) indicate the number of occurrences of a certain pattern in a product. <br/>
|
|
- An '''elementary process metric''' is a process metric whose values reflect measurements drawn directly from project records. }}
|
|
|
|
An example of elementary product metric is the number of source lines. An example of elementary process metric is the number of incremental compilations of a system.
|
|
|
|
Elementary metrics are provided by default by the metric tool. There is no means to remove them or to define new ones since they are not expressed as a combination of other metrics.
|
|
|
|
From these elementary metrics we may define composite ones:
|
|
|
|
{{definition|Composite metric|A '''composite metric''' is a metric whose values are defined by a mathematical formula involving other metrics (elementary, or previously defined composite metrics). }}
|
|
A later section will introduce a number of operations for defining composite metrics out of elementary ones.
|
|
Again we may distinguish between product and process:
|
|
|
|
{{definition|Composite product metric, composite process metric|<br/>
|
|
- A '''composite product metric''' is a composite metric defined entirely in terms of product metrics. <br/>
|
|
- A '''composite process metric''' is a composite metric whose definition involves one or more process metrics. }}
|
|
|
|
By convention, this definition treats as process metric as a composite metric involving both product and process components.
|
|
|
|
The classification introduced for metrics extends to measures, so that we may talk about an elementary product measure, a composite process measure and so on.
|
|
|
|
{{seealso|<br/>
|
|
[[Attributes, metrics and measures|Metrics]] <br/>
|
|
[[Scopes|Scopes]] <br/>
|
|
[[Domains|Domains]] <br/>
|
|
[[Selection Criteria|Selection criteria]] }}
|
|
|
|
|
|
|
|
|