Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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