Skip to content

Commit

Permalink
adding some comments to explain scoring strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Scruggs committed Nov 13, 2010
1 parent b515d8f commit ef26333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/base/scoring_strategies.rb
@@ -1,15 +1,15 @@
module ScoringStrategies

def percentile(ranking, item)
ranking.percentile(item)
ranking.percentile(item) # per project score percentile
end

def identity(ranking, item)
ranking[item]
ranking[item] # Use the score you got (ex flog score of 20 is not bad even if it is the top one in project)
end

def present(row)
1
1 # If present it's a one, not present it's a zero - For things like Reek that don't have a number
end

def sum(scores)
Expand Down

0 comments on commit ef26333

Please sign in to comment.