Skip to content

Instantly share code, notes, and snippets.

@mperham
Created April 1, 2009 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperham/88755 to your computer and use it in GitHub Desktop.
Save mperham/88755 to your computer and use it in GitHub Desktop.
# Page scoring scenario
# Global Constants
page_link_e = 0.775
page_link_u = 0.1
entry_link_e = 0.65
entry_link_u = 0.2
atomicity = 0.1
page 'a' do
# define (e, u) for the entry link to this page
entry_link 0.67, 0.2
# now define (e, u) for the pages linking to this page
page_link 0.45, 0.2
page_link 0.33, 0.1
page_link 0.64, 0.14
end
page 'b' do
# define (e, u) for the entry link to this page
entry_link 0.67, 0.2
# now define (e, u) for the pages linking to this page
page_link 0.45, 0.2
page_link 0.33, 0.1
page_link 0.64, 0.14
end
# And now hit Go! to generate the page score(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment