numerics 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/numerics.rb +1 -1
- data/lib/numerics/connection.rb +12 -0
- metadata +1 -1
data/lib/numerics.rb
CHANGED
data/lib/numerics/connection.rb
CHANGED
@@ -85,6 +85,18 @@ module Numerics
|
|
85
85
|
self.get(timeseries, 'stats')
|
86
86
|
end
|
87
87
|
|
88
|
+
def stats_per(timeseries, property_name)
|
89
|
+
self.get(timeseries, 'stats_per', :p => property_name)
|
90
|
+
end
|
91
|
+
|
92
|
+
def stats_without_zeros(timeseries)
|
93
|
+
self.get(timeseries, 'stats_without_zeros')
|
94
|
+
end
|
95
|
+
|
96
|
+
def tally_of(timeseries, val)
|
97
|
+
self.get(timeseries, 'tally_of', :v => val)
|
98
|
+
end
|
99
|
+
|
88
100
|
def distribution(timeseries, width=nil, start=nil)
|
89
101
|
query = if width || start
|
90
102
|
{:w => width, :s => start}
|