add tcc
This commit is contained in:
parent
8ee3b0c7d2
commit
6b1bbda169
@ -0,0 +1,12 @@
|
||||
# otherwise known as the Test Characteristic Curve (TCC)
|
||||
class TestResponseFunction():
|
||||
def __init__(self, irf):
|
||||
self.irf = irf
|
||||
|
||||
def calculate(self, items, **kwargs):
|
||||
result = 0
|
||||
|
||||
for item in items:
|
||||
result += irf.calculate(b_param=item.b_param, theta=kwargs['theta'])
|
||||
|
||||
return result
|
Loading…
x
Reference in New Issue
Block a user