return 0.0 on empty vectors