setContaminationFraction function

Manually set contamination fraction