Skip to content

Commit

Permalink
remove tildes from trigram analysis output
Browse files Browse the repository at this point in the history
  • Loading branch information
semilin committed Feb 11, 2024
1 parent c6a4f01 commit 09bd886
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions output.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ func PrintAnalysis(l Layout) {
leftrolls := 100*float64(ftri.LeftInwardRolls)/ftotal + 100*float64(ftri.LeftOutwardRolls)/ftotal
rightrolls := 100*float64(ftri.RightInwardRolls)/ftotal + 100*float64(ftri.RightOutwardRolls)/ftotal
fmt.Printf("Rolls (l): %.2f%%\n", leftrolls)
fmt.Printf("\tInward: ~%.2f%%\n", 100*float64(ftri.LeftInwardRolls)/ftotal)
fmt.Printf("\tOutward: ~%.2f%%\n", 100*float64(ftri.LeftOutwardRolls)/ftotal)
fmt.Printf("\tInward: %.2f%%\n", 100*float64(ftri.LeftInwardRolls)/ftotal)
fmt.Printf("\tOutward: %.2f%%\n", 100*float64(ftri.LeftOutwardRolls)/ftotal)
fmt.Printf("Rolls (r): %.2f%%\n", rightrolls)
fmt.Printf("\tInward: ~%.2f%%\n", 100*float64(ftri.RightInwardRolls)/ftotal)
fmt.Printf("\tOutward: ~%.2f%%\n", 100*float64(ftri.RightOutwardRolls)/ftotal)
fmt.Printf("Alternates: ~%.2f%%\n", 100*float64(ftri.Alternates)/ftotal)
fmt.Printf("Onehands: ~%.2f%%\n", 100*float64(ftri.Onehands)/ftotal)
fmt.Printf("Redirects: ~%.2f%%\n", 100*float64(ftri.Redirects)/ftotal)
fmt.Printf("\tInward: %.2f%%\n", 100*float64(ftri.RightInwardRolls)/ftotal)
fmt.Printf("\tOutward: %.2f%%\n", 100*float64(ftri.RightOutwardRolls)/ftotal)
fmt.Printf("Alternates: %.2f%%\n", 100*float64(ftri.Alternates)/ftotal)
fmt.Printf("Onehands: %.2f%%\n", 100*float64(ftri.Onehands)/ftotal)
fmt.Printf("Redirects: %.2f%%\n", 100*float64(ftri.Redirects)/ftotal)

var weighted []float64
var unweighted []float64
Expand Down

0 comments on commit 09bd886

Please sign in to comment.