Documentation
¶
Index ¶
- type LengthStats
- func (stats *LengthStats) Add(length uint64)
- func (stats *LengthStats) Count() uint64
- func (stats *LengthStats) L50() int
- func (stats *LengthStats) LX(n float64) int
- func (stats *LengthStats) Max() uint64
- func (stats *LengthStats) Mean() float64
- func (stats *LengthStats) Median() float64
- func (stats *LengthStats) Min() uint64
- func (stats *LengthStats) N50() uint64
- func (stats *LengthStats) NX(n float64) uint64
- func (stats *LengthStats) Percentile(percent float64) float64
- func (stats *LengthStats) Q1() float64
- func (stats *LengthStats) Q2() float64
- func (stats *LengthStats) Q3() float64
- func (stats *LengthStats) Sum() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LengthStats ¶
type LengthStats struct {
// contains filtered or unexported fields
}
LengthStats accepts sequence lengths and calculate N50 et al..
func (*LengthStats) Count ¶
func (stats *LengthStats) Count() uint64
Count returns number of elements
func (*LengthStats) LX ¶ added in v0.9.0
func (stats *LengthStats) LX(n float64) int
LX returns something like L50, where X could be a number in the range of [0, 100]
func (*LengthStats) NX ¶ added in v0.9.0
func (stats *LengthStats) NX(n float64) uint64
NX returns something like N50, where X could be a number in the range of [0, 100]
func (*LengthStats) Percentile ¶ added in v0.8.3
func (stats *LengthStats) Percentile(percent float64) float64
Click to show internal directories.
Click to hide internal directories.