Skip to content

Commit

Permalink
move things around again
Browse files Browse the repository at this point in the history
  • Loading branch information
seiflotfy committed Aug 12, 2018
1 parent 8006346 commit 76923dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
17 changes: 0 additions & 17 deletions sum_entry.go

This file was deleted.

16 changes: 16 additions & 0 deletions summary.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
package quantiles

// SumEntry ...
type SumEntry struct {
Value float64
Weight float64
MinRank float64
MaxRank float64
}

func (se SumEntry) prevMaxRank() float64 {
return se.MaxRank - se.Weight
}

func (se SumEntry) nextMinRank() float64 {
return se.MinRank + se.Weight
}

// Summary ...
type Summary struct {
entries []*SumEntry
Expand Down

0 comments on commit 76923dd

Please sign in to comment.