![]() | Software Metrics and Software Metrology Alain Abran IEEE Computer Society, 2010 ISBN 978-0-470-59720-0 |
| Scale Type | Description | Examples | Operations allowed | Misuse |
| Nominal | used to name objects or events; used only in identifying requirements. | Telephone Area Code (514-Montreal, 418-Quebec City, etc) | ==, != | 514 is higher than 418 |
| Ordinal | used to put objects in order, criterion may be subjective (preferably objective).. | Frequentness (0=very rare, 1=rare, 2=medium, 3=frequent, etc.) | nominal operations and, <, > | '2' is twice as frequent as '1' |
| Interval (also called cardinal) | used to determine difference between ranks. | Temperature in Celcius, calendar time | ordinal operations and, +, -, average | +10C is twice warmer than +5C |
| Ratio | has an absolute zero that is not arbritary; significant to multiply by a non-negative number. | Temperature in Kelvin, mass, distance. | interval operations and, *, /, percentage, | log(1 meter) = 0 log (3 feets) ~= 1.1 meters (or feets) are arbitrary echelons. |
| Absolute | has a significant unit measure (echelon) that is not arbritary, significant to count entities. | Entity count. | ratio operations and, log() |
| In
general, in engineering applications, we do not take the logarithm of a
dimensioned number, only that of a dimensionless quantity. For
instance, in calculating decibels, we take the logarithms of a ratio of
two quantities. A ratio of quantities with the same dimensions is
itself dimensuionless. We can write: log(a/b) = log(a) - log(b) making it appear that we are taking the logs of dimentioned quantities (a) and (b), but the dimensions "come out in the wash" : by the time we have finished (substracting one log from the other), we have effectively taken the log of a dimentionless quantity (a/b). We can regard units as factors in an expression, for instance: 8 meters = 8 * 1 meter 800 cm = 800 * 1 cm = 800 * 0.01 * 1 meter (..) The inconvenient term 8*log2(1m) is an additive term that depends on the units being used. If it is part of a valid engineering calculation, it will be canceled out somewhere in the process. It may be, for instance, that when we take the log of 8 meters, we are actually taking the log of a ratio of 8 meters to a one-meter standard length. |
| v(G) = e - n + p e : nb edges n : nb vertices p: separate components |
| Base measures: N1 : Total nb of occurrences of operators N2 : Total nb of occurrences of operarands n1 : Nb of distinct operators n2 : Nb of distinct operands n1* : Nb of potential operators (minimum possible number of operators for a module) n2* : Nb of potential operands N = N1 + N2 N : length of a program P n = n1 + n2 n : vocabulary V = N * log2 n V : volume of a program P V* = (2 + n2) log2 (2 + n2) V* : potential (minimal) volume of a program P L = V* / V L : program level D = (n1 / 2) * (N1 / n2) D : program difficulty E = V / L according [Abran], V * D according others E : programming effort T = E / S T : programming time in seconds S : the Stroud number, i.e. the number of mental discrimination per second, in the range of 5 to 20. S is set to 18 for software scientists. |
Dernière mise à jour: 26 novembre 2010.