Class: LinkThumbnailer::Graders::Length
- Defined in:
- lib/link_thumbnailer/graders/length.rb
Instance Attribute Summary
Attributes inherited from Base
#config, #description, #options
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LinkThumbnailer::Graders::Base
Instance Method Details
#call ⇒ Object
7 8 9 10 11 |
# File 'lib/link_thumbnailer/graders/length.rb', line 7 def call return 0.0 if too_short? y / get_gaussian_value_for(ideal_description_length) end |