def __init__(self): QoIMetric.__init__(self, "Correctness") self.updatecounter = 0 self.rewardAndPunishment = RewardAndPunishment(20) self.goal = 1 # always want 100% correctness self.min = 1 self.mean = 1 self.unit = "http://purl.oclc.org/NET/muo/ucum/unit/fraction/percent"
def __init__(self): QoIMetric.__init__(self, "Age") self.lastUpdate = None self.weight = 0.99 self.nulldelta = timedelta(seconds=0) self.rewardAndPunishment = RewardAndPunishment(5) self.datatype = "time" self.updatecounter = 1 self.unit = "http://purl.oclc.org/NET/muo/ucum/unit/time/second"
def __init__(self): QoIMetric.__init__(self, "Completeness") self.goal = None self.rewardAndPunishment = RewardAndPunishment(5) self.updatecounter = 1 self.unit = "http://purl.oclc.org/NET/muo/ucum/physical-quality/number"