Skip to content
Browse files

getSummaryAvgs: extract averages from summary into tuple

  • Loading branch information...
1 parent 1dcc1f5 commit 97aea19f54804303c1c9f4b3138fa05a3e035268 @alang9 committed Oct 19, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Data/ZoomCache/Gnuplot.hs
View
5 Data/ZoomCache/Gnuplot.hs
@@ -74,3 +74,8 @@ getSummaryCandleVals s = ( Z.summaryCloseTime s
, Z.summaryMax s
, Z.summaryClose s
))
+
+getSummaryAvgs :: Z.Summary a -> (Z.TimeStamp, Double)
+getSummaryAvgs s = ( Z.summaryCloseTime s
+ , Z.summaryAvg s
+ )

0 comments on commit 97aea19

Please sign in to comment.
Something went wrong with that request. Please try again.