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 CHANGED
@@ -8,7 +8,7 @@ require 'numerics/connection'
8
8
 
9
9
  module Numerics
10
10
 
11
- VERSION = '0.2.3'
11
+ VERSION = '0.2.4'
12
12
 
13
13
  def self.connect(arg, env=nil)
14
14
  config = if arg.is_a?(Hash)
@@ -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}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: numerics
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Lund