Changeset 574
- Timestamp:
- 03/30/09 17:22:51 (3 years ago)
- File:
-
- 1 edited
-
Voting/trunk/src/corinis/modules/Voting.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Voting/trunk/src/corinis/modules/Voting.java
r571 r574 695 695 // now add the bayesian and the corrected 696 696 double bayesian = (((totalCountVotes/totalInstances)*(totalSumVotes/totalCountVotes))+(currentCount*(endvalue)) ) / ((totalCountVotes/totalInstances)+currentCount); 697 choices.appendChild(DomUtil.CreateNode(core.getDoc(), "BAY SIAN", String.valueOf(bayesian)));697 choices.appendChild(DomUtil.CreateNode(core.getDoc(), "BAYESIAN", String.valueOf(bayesian))); 698 698 // now correct the value 699 699 double correct = bayesian + weightAvg - (totalSumVotes/totalCountVotes); 700 choices.appendChild(DomUtil.CreateNode(core.getDoc(), "BAY SIANADJUSTED", String.valueOf(correct)));700 choices.appendChild(DomUtil.CreateNode(core.getDoc(), "BAYESIANADJUSTED", String.valueOf(correct))); 701 701 702 702
Note: See TracChangeset
for help on using the changeset viewer.
