Serious work needed on ddf function, is input_vals a list of tuples or floats?