class Iro::Purse

def delta_to_plot_p( *args )

# convert to normal between 0 and 3 std
# delta to plot percentage
def delta_to_plot_p( *args )
  x = delta_wt_avg( *args ).abs
  if x < 0.5
    y = 1
  else
    y = 2 - 1/( 1.5 - x )
  end
  y_ = "#{ (y*100) .to_i}%"
  return y_
end