summaryrefslogtreecommitdiffstats
path: root/Monitoring/src/main/python/DataProcessing/MeasurementLevel.py
diff options
context:
space:
mode:
authorpikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
committer pikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
commit2f2a3a129c91de540e66c3bfbe30b0df1942cd4b (patch)
tree2d313cdf0068af368d4de6067d676be16f6a6464 /Monitoring/src/main/python/DataProcessing/MeasurementLevel.py
parentff8aa232b071a9b54dff833714a870fd0aec0b30 (diff)
downloadnovi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.zip
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.gz
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.bz2
project commit and dir tree change
Diffstat (limited to 'Monitoring/src/main/python/DataProcessing/MeasurementLevel.py')
-rw-r--r--Monitoring/src/main/python/DataProcessing/MeasurementLevel.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/Monitoring/src/main/python/DataProcessing/MeasurementLevel.py b/Monitoring/src/main/python/DataProcessing/MeasurementLevel.py
new file mode 100644
index 0000000..4e3d702
--- /dev/null
+++ b/Monitoring/src/main/python/DataProcessing/MeasurementLevel.py
@@ -0,0 +1,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,
+}