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
5 6 7 8 9 |
# File 'lib/link_thumbnailer/graders/length.rb', line 5 def call return 0.0 if too_short? y / get_gaussian_value_for(ideal_description_length) end |