movingavg

package
v0.0.0-...-3943c12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	GetTime() time.Time
}

type MovingAverageCalculator

type MovingAverageCalculator struct {
	Nower Nower
}

func NewCalculator

func NewCalculator(nower Nower) MovingAverageCalculator

func (*MovingAverageCalculator) CountFrom

func (MovingAverageCalculator *MovingAverageCalculator) CountFrom(ago time.Duration, items []Item) int

type NowTime

type NowTime struct {
}

func (NowTime) Now

func (nowTime NowTime) Now() time.Time

type Nower

type Nower interface {
	Now() time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL