Skip to content

Commit

Permalink
Update algo.go
Browse files Browse the repository at this point in the history
Updated comment's grammar.
  • Loading branch information
tristanisham committed May 18, 2024
1 parent f2e7c60 commit b5191d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func randClean[T comparable](s map[T]struct{}) {
}

// Estimate uses the CVM algorithm to calculate the number of unique item in an array.
// e (epsilon) represents acceptable relative error
// e (epsilon) represents acceptable relative error.
// d (delta) represents the probability of failure for the algorithm to produce an estimation within the specific
// e-bound.
func Estimate[T comparable](source []T, e, d float64) float64 {
Expand Down

0 comments on commit b5191d6

Please sign in to comment.