   shakeGraph: ->
     graph = $('#graph-container')
     return if graph.hasClass('shaking')
-    graph.addClass('shaking') 
+    graph.addClass('shaking')
     graph.effect( "shake", {times:4, distance: 2}, 700, =>
         graph.removeClass('shaking')
       ) # eventually remove jquery ui dependency?

    for y, i in [ data... ]
      y_new[i] = (y-1)/(std)
      y_new[i] = y/(mean)
     
    return y_new

  processOutliers: (data, nsigma) -> 
    data_new = {}
    data_new.x = []
    data_new.y = []
    mean = @mean(data.y)
    std = @std(data.y)
    
    for y, i in [data.y...]
      continue if (y - mean) > (nsigma * std) # skip outlier
      data_new.x.push data.x[i]

    #     clearInterval zoom
    #     classifier.el.find('#graph').removeClass('is-zooming')
    #     @plotPoints(@smallestX, @largestX)
    #     unless callback is undefined
    #       callback.apply()
    #       classifier.el.find("#zoom-button").removeClass("zoomed")
    #       classifier.el.find("#zoom-button").removeClass("allowZoomOut") # for last zoom level
