def counter2trend(counter)
      self.new({
        enterprise: counter.enterprise,
        score: score(counter.divergence),
        uid: counter.uid,
        ts: counter.ts
      })
    end
def counter2trend(counter)
      self.new({
        enterprise: counter.enterprise,
        score: score(counter.divergence),
        uid: counter.uid,
        ts: counter.ts
      })
    end
Converts a couunter into a trend
 @param [Object] counter A counter object. This object must belong
   to one of the counter types defined in models.
 @return [Object] Returns a trend instance corresponding to the counter
   instance