avg

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decimal128Size = encoding.Decimal128Size

Functions

This section is empty.

Types

type AvgRing

type AvgRing struct {
	Da  []byte
	Ns  []int64
	Vs  []float64
	Typ types.Type
}

func NewAvg

func NewAvg(typ types.Type) *AvgRing

func (*AvgRing) Add

func (r *AvgRing) Add(a interface{}, x, y int64)

func (*AvgRing) BatchAdd

func (r *AvgRing) BatchAdd(a interface{}, start int64, os []uint8, vps []uint64)

func (*AvgRing) BatchFill

func (r *AvgRing) BatchFill(start int64, os []uint8, vps []uint64, zs []int64, vec *vector.Vector)

func (*AvgRing) BulkFill

func (r *AvgRing) BulkFill(i int64, zs []int64, vec *vector.Vector)

func (*AvgRing) Count

func (r *AvgRing) Count() int

func (*AvgRing) Dup

func (r *AvgRing) Dup() ring.Ring

func (*AvgRing) Eval

func (r *AvgRing) Eval(zs []int64) *vector.Vector

func (*AvgRing) Fill

func (r *AvgRing) Fill(i int64, sel, z int64, vec *vector.Vector)

func (*AvgRing) Free

func (r *AvgRing) Free(m *mheap.Mheap)

func (*AvgRing) Grow

func (r *AvgRing) Grow(m *mheap.Mheap) error

func (*AvgRing) Grows

func (r *AvgRing) Grows(size int, m *mheap.Mheap) error

func (*AvgRing) Mul

func (r *AvgRing) Mul(a interface{}, x, y, z int64)

r[x] += a[y] * z

func (*AvgRing) SetLength

func (r *AvgRing) SetLength(n int)

func (*AvgRing) Shrink

func (r *AvgRing) Shrink(sels []int64)

func (*AvgRing) Shuffle

func (r *AvgRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*AvgRing) Size

func (r *AvgRing) Size() int

func (*AvgRing) String

func (r *AvgRing) String() string

func (*AvgRing) Type

func (r *AvgRing) Type() types.Type

type DecimalRing added in v0.5.0

type DecimalRing struct {
	Da  []byte
	Ns  []int64
	Vs  []types.Decimal128
	Typ types.Type
}

func NewDecimalRing added in v0.5.0

func NewDecimalRing(typ types.Type) *DecimalRing

func (*DecimalRing) Add added in v0.5.0

func (r *DecimalRing) Add(a interface{}, x, y int64)

func (*DecimalRing) BatchAdd added in v0.5.0

func (r *DecimalRing) BatchAdd(a interface{}, start int64, os []uint8, vps []uint64)

func (*DecimalRing) BatchFill added in v0.5.0

func (r *DecimalRing) BatchFill(start int64, os []uint8, vps []uint64, zs []int64, vec *vector.Vector)

func (*DecimalRing) BulkFill added in v0.5.0

func (r *DecimalRing) BulkFill(i int64, zs []int64, vec *vector.Vector)

func (*DecimalRing) Count added in v0.5.0

func (r *DecimalRing) Count() int

func (*DecimalRing) Dup added in v0.5.0

func (r *DecimalRing) Dup() ring.Ring

func (*DecimalRing) Eval added in v0.5.0

func (r *DecimalRing) Eval(zs []int64) *vector.Vector

func (*DecimalRing) Fill added in v0.5.0

func (r *DecimalRing) Fill(i int64, sel, z int64, vec *vector.Vector)

func (*DecimalRing) Free added in v0.5.0

func (r *DecimalRing) Free(m *mheap.Mheap)

func (*DecimalRing) Grow added in v0.5.0

func (r *DecimalRing) Grow(m *mheap.Mheap) error

func (*DecimalRing) Grows added in v0.5.0

func (r *DecimalRing) Grows(size int, m *mheap.Mheap) error

func (*DecimalRing) Mul added in v0.5.0

func (r *DecimalRing) Mul(a interface{}, x, y, z int64)

r[x] += a[y] * z

func (*DecimalRing) SetLength added in v0.5.0

func (r *DecimalRing) SetLength(n int)

func (*DecimalRing) Shrink added in v0.5.0

func (r *DecimalRing) Shrink(sels []int64)

func (*DecimalRing) Shuffle added in v0.5.0

func (r *DecimalRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*DecimalRing) Size added in v0.5.0

func (r *DecimalRing) Size() int

func (*DecimalRing) String added in v0.5.0

func (r *DecimalRing) String() string

func (*DecimalRing) Type added in v0.5.0

func (r *DecimalRing) Type() types.Type

Jump to

Keyboard shortcuts

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