Some helpers without having a specific module
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

continues_statistic_multivalue.py 1.2KB

12345678910111213141516171819
  1. import sys
  2. sys.path.append('../..')
  3. import helpers
  4. csm = helpers.continues_statistic_multivalue()
  5. print(csm, '\n--------------------------------------------------------------')
  6. csm += helpers.continues_statistic_multivalue(a={'mean': 3.1, 'min_val': 1, 'max_val': 3.5, 'quantifier': 305})
  7. print(csm, '\n--------------------------------------------------------------')
  8. csm += helpers.continues_statistic_multivalue(a=4.31, b={'mean': 17.1, 'min_val': 13.1, 'max_val': 19.3, 'quantifier': 27})
  9. print(csm, '\n--------------------------------------------------------------')
  10. print(helpers.continues_statistic_multivalue(dict(csm)), '\n--------------------------------------------------------------')
  11. print('pop out b:', csm.pop('b'), '\n--------------------------------------------------------------')
  12. print('pop out b:', csm.pop('b'), '\n--------------------------------------------------------------')
  13. print(csm, '\n--------------------------------------------------------------')
  14. print('pop out all:\n%s' % csm.pop(), '\n--------------------------------------------------------------')
  15. print('pop out all:\n%s' % csm.pop(), '\n--------------------------------------------------------------')
  16. print(csm, '\n--------------------------------------------------------------')