kmwhelan93 / FantasyLineupGenerator

1 stars 0 forks source link

Make demographics independent of Player so we can output a table with format something like below #2

Open kmwhelan93 opened 9 years ago

kmwhelan93 commented 9 years ago

Example table:

Demographic Data for top 200 2000 20000 lineups

Peyton Manning: 35.50% 25% 20% Aaron Rodgers: 1.00% 3% 10% Russell Wilson: 0.50% 1% 2%

Devon-Peroutky commented 9 years ago

Added a simple, but kind of hack solution that prints out the Demographics for top K K_10 K_100 lineups. Instead of: Peyton Manning: 35.50% 25% 20% Aaron Rodgers: 1.00% 3% 10% Russell Wilson: 0.50% 1% 2%

We have: Top 20: Peyton Manning: 35.50% Aaron Rodgers: 1.00% Russell Wilson: 0.50%

Top 200: Peyton Manning: 25% Aaron Rodgers: 3% Russell Wilson: 1%

Top 2000: Peyton Manning: 20% Aaron Rodgers: 10% Russell Wilson: 2%

The table is better but will require extra data structures. Maybe a (PlayerName=>int [] membership) HashTable