Module: SimpleMetrics::Functions

Defined in:
lib/simple_metrics/functions.rb

Instance Method Summary collapse

Instance Method Details

#max(*data_points) ⇒ Object

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

#min(*data_points) ⇒ Object

calculate the minimum value for multiple targets



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

def min(*data_points)
end

#offset(*data_points) ⇒ Object

add offset to each value



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

def offset(*data_points)
end

#scale(*data_points) ⇒ Object

multiple each value



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

def scale(*data_points)
end

#sum(*data_points) ⇒ Object

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