code: def get_FRAC(vds, vector_diffs_segment):
      
      for num in vector_diffs_segment:
          if num < 0:
              raise ValueError('vector diffs should not be negative')
      if vds == 0:
          raise ValueError('attempting to divide by zero. vds should be a positive number')
      FRAC = old_div(sum(vector_diffs_segment), vds)
      return FRAC
docs: input: vds, vector_diffs_segment
      output: FRAC