Method: SY::Measure.logarithmic

Defined in:
lib/sy/mapping.rb,
lib/sy/measure.rb

.logarithmic(base = Math::E) ⇒ Object

Logarithmic.



44
45
46
47
# File 'lib/sy/mapping.rb', line 44

def logarithmic base=Math::E
  new( r: lambda { |ref_amnt| Math.log ref_amnt, base },
       w: lambda { |amnt| base ** amnt } )
end