gap

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* File: /Users/robi/Documents/git.hub/marketstore/uda/gap/gap.go * Created Date: Thursday, February 28th 2019, 4:42:41 pm * Author: Robi Lin * ----- * Last Modified: * Modified By: * ----- * Copyright (c) 2019 QK Captial * * Description: *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gap

type Gap struct {
	uda.AggInterface

	// Input arguments mapping
	ArgMap *functions.ArgumentMap

	BigGapIdxs []int
	Input      *io.ColumnInterface
	// contains filtered or unexported fields
}

func NewGap

func NewGap(inputColumns, optionalInputColumns []io.DataShape) (g *Gap)

CONCRETE - these may be suitable methods for general usage

func (*Gap) Accum

func (g *Gap) Accum(cols io.ColumnInterface) error

Accum() sends new data to the aggregate Use Zscore to find out the big hole in data.

func (*Gap) GetInitArgs

func (g *Gap) GetInitArgs() []io.DataShape

func (*Gap) GetOptionalArgs

func (g *Gap) GetOptionalArgs() []io.DataShape

func (*Gap) GetRequiredArgs

func (g *Gap) GetRequiredArgs() []io.DataShape

func (*Gap) Init

func (g *Gap) Init(args ...interface{}) error

func (Gap) New

func (g Gap) New() (out uda.AggInterface, am *functions.ArgumentMap)

Creates a new count using the arguments of the specific implementation for inputColumns and optionalInputColumns

func (*Gap) Output

func (g *Gap) Output() *io.ColumnSeries

Output() returns the currently valid output of this aggregate

func (*Gap) Reset

func (g *Gap) Reset()

Reset() puts the aggregate state back to "new"

func (*Gap) SetTimeBucketKey added in v4.1.0

func (g *Gap) SetTimeBucketKey(tbk io.TimeBucketKey)

SetTimeBucketKey()

Jump to

Keyboard shortcuts

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