stddevpop

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdDevPopRing

type StdDevPopRing struct {
	// Typ is vector's value type
	Typ types.Type
	// attributes for computing the variance
	Data  []byte
	SumX  []float64 // sum of x, its memory address is same to Data, because we will use it to store result finally.
	SumX2 []float64 // sum of x^2

	NullCounts []int64 // group to record number of the null value
}

func NewStdDevPopRing

func NewStdDevPopRing(typ types.Type) *StdDevPopRing

func NewStdDevPopRingWithTypeCheck

func NewStdDevPopRingWithTypeCheck(typ types.Type) (*StdDevPopRing, error)

func (*StdDevPopRing) Add

func (v *StdDevPopRing) Add(a interface{}, x, y int64)

func (*StdDevPopRing) BatchAdd

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

func (*StdDevPopRing) BatchFill

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

func (*StdDevPopRing) BulkFill

func (v *StdDevPopRing) BulkFill(i int64, zs []int64, vec *vector.Vector)

func (*StdDevPopRing) Count

func (v *StdDevPopRing) Count() int

func (*StdDevPopRing) Dup

func (v *StdDevPopRing) Dup() ring.Ring

func (*StdDevPopRing) Eval

func (v *StdDevPopRing) Eval(zs []int64) *vector.Vector

func (*StdDevPopRing) Fill

func (v *StdDevPopRing) Fill(i, j int64, z int64, vec *vector.Vector)

func (*StdDevPopRing) Free

func (v *StdDevPopRing) Free(m *mheap.Mheap)

func (*StdDevPopRing) Grow

func (v *StdDevPopRing) Grow(m *mheap.Mheap) error

func (*StdDevPopRing) Grows

func (v *StdDevPopRing) Grows(N int, m *mheap.Mheap) error

func (*StdDevPopRing) Mul

func (v *StdDevPopRing) Mul(a interface{}, x, y, z int64)

func (*StdDevPopRing) SetLength

func (v *StdDevPopRing) SetLength(n int)

func (*StdDevPopRing) Shrink

func (v *StdDevPopRing) Shrink(selectIndexes []int64)

func (*StdDevPopRing) Shuffle

func (v *StdDevPopRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*StdDevPopRing) Size

func (v *StdDevPopRing) Size() int

func (*StdDevPopRing) String

func (v *StdDevPopRing) String() string

func (*StdDevPopRing) Type

func (v *StdDevPopRing) Type() types.Type

Jump to

Keyboard shortcuts

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