20 satır
1.2 KiB
Python
20 satır
1.2 KiB
Python
import sys
|
|
sys.path.append('../..')
|
|
|
|
import helpers
|
|
|
|
|
|
csm = helpers.continues_statistic_multivalue()
|
|
print(csm, '\n--------------------------------------------------------------')
|
|
csm += helpers.continues_statistic_multivalue(a={'mean': 3.1, 'min_val': 1, 'max_val': 3.5, 'quantifier': 305})
|
|
print(csm, '\n--------------------------------------------------------------')
|
|
csm += helpers.continues_statistic_multivalue(a=4.31, b={'mean': 17.1, 'min_val': 13.1, 'max_val': 19.3, 'quantifier': 27})
|
|
print(csm, '\n--------------------------------------------------------------')
|
|
print(helpers.continues_statistic_multivalue(dict(csm)), '\n--------------------------------------------------------------')
|
|
print('pop out b:', csm.pop('b'), '\n--------------------------------------------------------------')
|
|
print('pop out b:', csm.pop('b'), '\n--------------------------------------------------------------')
|
|
print(csm, '\n--------------------------------------------------------------')
|
|
print('pop out all:\n%s' % csm.pop(), '\n--------------------------------------------------------------')
|
|
print('pop out all:\n%s' % csm.pop(), '\n--------------------------------------------------------------')
|
|
print(csm, '\n--------------------------------------------------------------')
|