func NewMemoryBackend(decayPeriod time.Duration, decayFactor float64) *MemoryBackend {
	return &MemoryBackend{
		scores:           make(map[Signature]float64),
		DecayPeriod:      decayPeriod,
		decayFactor:      decayFactor,
		countScaleFactor: (decayFactor / (decayFactor - 1)) * decayPeriod.Seconds(),
	}
}
// NewMemoryBackend returns an initialized Backend.
NewMemoryBackend returns an initialized Backend.
// NewMemoryBackend returns an initialized Backend .
func NewMemoryBackend(decayPeriod time.Duration, decayFactor float64) *MemoryBackend {
	return &MemoryBackend{
		scores:           make(map[Signature]float64),
		DecayPeriod:      decayPeriod,
		decayFactor:      decayFactor,
		countScaleFactor: (decayFactor / (decayFactor - 1)) * decayPeriod.Seconds(),
	}
}
func NewMemoryBackend ( decayPeriod time . Duration , decayFactor float64 ) * MemoryBackend { return & MemoryBackend { scores : make ( map [ Signature ] float64 ) , DecayPeriod : decayPeriod , decayFactor : decayFactor , countScaleFactor : ( decayFactor / ( decayFactor - 1 ) ) * decayPeriod . Seconds ( ) , } }
NewMemoryBackend returns an initialized Backend.
NewMemoryBackend returns an initialized Backend .