Author:jfiat

Date:2008-09-26T06:27:47.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@49 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
jfiat
2008-09-26 06:27:47 +00:00
parent 779a4ba9e8
commit 7ccc85dd3b
10 changed files with 15 additions and 31 deletions

View File

@@ -3,13 +3,13 @@
[[Property:uuid|fa08d5aa-7ea4-e7bb-bb59-e4982a583976]]
Metrics will be expressed in units, such as Line (numbers of source lines) or Feature (number of features).
{{note| '''Unit rule:''' The definition of any metric must specify an associated unit. }}
{{definition|Unit rule|The definition of any metric must specify an associated unit. }}
Different metrics may be marked with the same unit; for example metrics such as number of non-comment lines and number of comment lines may both be marked with the unit Line.
Whenever we need to express ratios of one measurement to another, as in computing the average number of features per class by dividing the number of features by the number of classes, we will use a specific unit, Ratio:
{{note| '''"Ratio unit"''': The name Ratio denotes a predefined unit, whose values are arbitrary real numbers, expressed either as numbers or in percentage style (as in 35.3%). }}
{{definition|Ratio unit|The name Ratio denotes a predefined unit, whose values are arbitrary real numbers, expressed either as numbers or in percentage style (as in 35.3%). }}
As a result of this choice, we will consider every division to yield a result of unit, Ratio.