Skip to content

Commit

Permalink
Remove mean, median, and mode from -vvv
Browse files Browse the repository at this point in the history
- Did not add direct value
- Calculations were also wrong
  • Loading branch information
JakeWnuk committed Apr 28, 2024
1 parent de2f1c0 commit 53e79e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ Total Characters: 2758719
Total Words: 585199
Largest frequency: 29529
Smallest frequency: 1
Mean frequency: 1
Median frequency: 1
Mode frequency: 29529

Category Counts:
alphabetical: 496547
Expand Down
3 changes: 0 additions & 3 deletions pkg/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ func CreateVerboseStats(freq map[string]int) string {
stats += fmt.Sprintf("Total Words: %d\n", totalWords)
stats += fmt.Sprintf("Largest frequency: %d\n", p[0].Value)
stats += fmt.Sprintf("Smallest frequency: %d\n", p[len(p)-1].Value)
stats += fmt.Sprintf("Mean frequency: %d\n", p[len(p)/2].Value)
stats += fmt.Sprintf("Median frequency: %d\n", p[len(p)/2].Value)
stats += fmt.Sprintf("Mode frequency: %d", p[0].Value)

stats += "\n\nCategory Counts:\n"
for category, count := range categoryCounts {
Expand Down

0 comments on commit 53e79e6

Please sign in to comment.