irt-service/app/lib/irt/test_response_function.py
Josh Burman 6b1bbda169 add tcc
2021-10-29 05:57:11 +00:00

13 lines
307 B
Python

# 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