update_sample_factors function

Update Sample Factors