put .to_f inside of begin/rescue
unit test skeleton for SplineDistribution
unit test with uniform distribution