Module: SimpleMetrics::Functions

Defined in:
lib/simple_metrics/functions.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) max(*data_points)

data_points [1, 3, 5], [2, 1, 6]

return:

array         [2, 3, 6]


12
13
# File 'lib/simple_metrics/functions.rb', line 12

def max(*data_points)
end

- (Object) min(*data_points)

calculate the minimum value for multiple targets



16
17
# File 'lib/simple_metrics/functions.rb', line 16

def min(*data_points)
end

- (Object) offset(*data_points)

add offset to each value



20
21
# File 'lib/simple_metrics/functions.rb', line 20

def offset(*data_points)
end

- (Object) scale(*data_points)

multiple each value



24
25
# File 'lib/simple_metrics/functions.rb', line 24

def scale(*data_points)
end

- (Object) sum(*data_points)

data_points [1, 3, 5], [2, 1, 6]

return:

array         [3, 4, 11]


34
35
# File 'lib/simple_metrics/functions.rb', line 34

def sum(*data_points)
end