toDistribution tweaked to work with negative vector values