accumulator

package module
v0.0.0-...-14bd681 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2014 License: MIT Imports: 0 Imported by: 2

README

accumulator Build Status

Value accumulator

Documentation

Index

Constants

View Source
const (
	// Negative register
	Negative = 0
	// Positive register
	Positive = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccValues

type AccValues [2]float32

AccValues contains accumulator values

type Accumulator

type Accumulator map[string]*AccValues

Accumulator accumulates element values by name

func NewAccumulator

func NewAccumulator() *Accumulator

NewAccumulator returns new accumulator

func (*Accumulator) Add

func (acc *Accumulator) Add(name string, val float32)

Add adds name/value to the accumulator

Jump to

Keyboard shortcuts

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