packages

package
v0.0.0-...-767a547 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 105 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Stolen from https://godoc.org/golang.org/x/net/internal/iana,
	ProtocolICMP     = 1
	ProtocolIPv6ICMP = 58
)

Variables

This section is empty.

Functions

func BinparseNew

func BinparseNew() *bp.BinaryPack

func CanRead

func CanRead(f *os.File, nsec int64) bool

func ChartBasic

func ChartBasic(title string, series []chart.Series) (out []byte, err error)

func ChartSeries

func ChartSeries(n int) []interface{}

func ConfACCOUNT

func ConfACCOUNT(val string) string

func ConfAccount

func ConfAccount() string

func ConfArgs

func ConfArgs() []string

func ConfEVENTTYPE

func ConfEVENTTYPE(val string) string

func ConfEventType

func ConfEventType() string

func ConfNRAPI

func ConfNRAPI(val string) string

func ConfNRAPIQ

func ConfNRAPIQ(val string) string

func ConfNrapi

func ConfNrapi() string

func ConfNrapiq

func ConfNrapiq() string

func DFFromCsv

func DFFromCsv(fname string) *dataframe.DataFrame

func FileTailNew

func FileTailNew(fname string) *follower.Follower

func FileTailWatch

func FileTailWatch(t *follower.Follower) []follower.Line

func GrokNew

func GrokNew(p map[string]string) (*grok.Grok, error)

func HjsonParse

func HjsonParse(data []byte) (res *gabs.Container, err error)

func Int

func Int(n string) int32

func JSONParsing

func JSONParsing(data []byte) *gabs.Container

func JSONPipeline

func JSONPipeline(n int64) chan *gabs.Container

func JSONPipelineMap

func JSONPipelineMap(n int64) chan map[string]interface{}

func NetList

func NetList(net *netaddr.IPv4Net) []string

func NumNorm

func NumNorm(data []float64) []float64

func NumStand

func NumStand(data []float64) []float64

func Ping

func Ping(addr string, listenAddr string) (*net.IPAddr, time.Duration, error)

func SNMPv1Get

func SNMPv1Get(addr string, community string, _oid string, retry uint) interface{}

func SNMPv2cGet

func SNMPv2cGet(addr string, community string, _oid string, retry uint) interface{}

func SNMPv2cWalk

func SNMPv2cWalk(addr string, community string, _oid string, retry uint) snmpgo.VarBinds

func StatSmoothMovingAverageWeightless

func StatSmoothMovingAverageWeightless(p []float64, win int64) []float64

func StatSmoothWeightless

func StatSmoothWeightless(p []float64, win int64) []float64

func StdlibBG

func StdlibBG() context.Context

func StdlibBytes

func StdlibBytes(src string) []byte

func StdlibFCacheNew

func StdlibFCacheNew(name string, size int) *fastcache.Cache

func StdlibFlowAll

func StdlibFlowAll(execs ...hunch.Executable) ([]interface{}, error)

func StdlibFlowFirst

func StdlibFlowFirst(first int, execs ...hunch.Executable) ([]interface{}, error)

func StdlibFlowLast

func StdlibFlowLast(last int, execs ...hunch.Executable) ([]interface{}, error)

func StdlibFlowPipe

func StdlibFlowPipe(execs ...hunch.ExecutableInSequence) (interface{}, error)

func StdlibFlowRetry

func StdlibFlowRetry(count int, exec hunch.Executable) (interface{}, error)

func StdlibParsetimeSetTZ

func StdlibParsetimeSetTZ(tz string)

func StdlibSemaphore

func StdlibSemaphore(n uint64) *semaphore.Weighted

func StdlibShortID

func StdlibShortID() *shortid.Shortid

func StdlibTODO

func StdlibTODO() context.Context

func String

func String(src []byte) string

func TimeHumanAsNow

func TimeHumanAsNow(rel string) (time.Time, error)

func UDPDTLSDial

func UDPDTLSDial(dialip string, port int, cliCert, cliPub string) *dtls.Conn

func UDPDTLSNew

func UDPDTLSNew(bindip string, port int, srvCert, srvPub string) net.Listener

func UUID

func UUID() string

func UnmarshalTrap

func UnmarshalTrap(sock *net.IPConn, b []byte, n int) snmplib.Trap

func UnmarshalTrap3

func UnmarshalTrap3(users []snmplib.V3user, sock *net.IPConn, b []byte, n int) snmplib.Trap

func VegetaAttackRateGet

func VegetaAttackRateGet(url string, _rate int, _duration int) (got uint64, want uint64)

Types

type SimpleFeedForward

type SimpleFeedForward struct {
	// contains filtered or unexported fields
}

func SFFNew

func SFFNew(input, hidden, output int) *SimpleFeedForward

func (*SimpleFeedForward) Configure

func (ff *SimpleFeedForward) Configure(epoch int, lrate float64, momentum float64, isReport bool)

func (*SimpleFeedForward) Configured

func (ff *SimpleFeedForward) Configured() bool

func (*SimpleFeedForward) Test

func (ff *SimpleFeedForward) Test(dataset [][][]float64)

func (*SimpleFeedForward) Train

func (ff *SimpleFeedForward) Train(dataset [][][]float64) []float64

func (*SimpleFeedForward) Update

func (ff *SimpleFeedForward) Update(dataset []float64) []float64

Jump to

Keyboard shortcuts

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