Class: LinkThumbnailer::Graders::Length

Inherits:
Base
  • Object
show all
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

#initialize, #weight

Constructor Details

This class inherits a constructor from LinkThumbnailer::Graders::Base

Instance Method Details

#callObject



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