summaryrefslogtreecommitdiffstats
path: root/Monitoring/src/main/python/DataProcessing/MeasurementLevel.py.old
blob: 4e3d702cbd7143ea74b489c7ddd7510fd8904a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'''
Created on Mar 22, 2012

@author: steger, jozsef

@summary: Class representation of the measurement levels (aka measurement scale) defined by Stanley Smith Stevens. 
Stevens proposed his theory in a 1946 Science article titled "On the theory of scales of measurement".
@note: These classes are not meant to be instantiated ever.
'''

class MeasurementLevel: 
    '''
    @summary: It serves as the common scheme for the measurement levels. Only its subclasses have a meaning.
    '''
    pass

class Nominal(MeasurementLevel): 
    '''
    @summary: Values of this kind of measurement are mere elements of a set.
    '''
    pass

class Ordinal(Nominal): 
    '''
    @summary: A ranking is defined between the values of this kind of measurement.
    '''
    pass

class Interval(Ordinal): 
    '''
    @summary: A difference is defined which can be evaluated for any two values of this kind of measurement.
    '''
    pass

class Ratio(Interval): 
    '''
    @summary: There is a reference value defined for this kind of measurement, that is "zero" has a meaning.
    '''
    pass

lut_level = {
   'NominalLevel': Nominal,
   'OrdinalLevel': Ordinal,
   'IntervalLevel': Interval,
   'RatioLevel': Ratio,
}