stdlib

package
v0.0.0-...-7f366ee Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RandomNormal      = 500
	RandomExponential = 501
)
View Source
const MaxSize = 0

There is a limit on maximum iterations. By default it is 0, means 'unlimited'

Variables

View Source
var Callbacks cmap.Cmap
View Source
var VERSION = conf.EVersion

Functions

func BUNDApplyFunction

func BUNDApplyFunction(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDFloatsToMatrix

func BUNDFloatsToMatrix(m *tc.TCMatrix, data []float64) *tc.TCMatrix

func BUNDGenerateFunction

func BUNDGenerateFunction(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDLogDebug

func BUNDLogDebug(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDLogError

func BUNDLogError(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDLogFatal

func BUNDLogFatal(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDLogInfo

func BUNDLogInfo(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDLogWarning

func BUNDLogWarning(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDMatrixToFloats

func BUNDMatrixToFloats(m *tc.TCMatrix) []float64

func BUNDRDEGenerator

func BUNDRDEGenerator(v interface{}) *tc.TCIterator

func BUNDRDEGet

func BUNDRDEGet(x interface{}, y interface{}) interface{}

func BUNDRDEIterGet

func BUNDRDEIterGet(res *tc.TCIterator) interface{}

func BUNDRDNGenerator

func BUNDRDNGenerator(v interface{}) *tc.TCIterator

func BUNDRDNGet

func BUNDRDNGet(x interface{}, y interface{}) interface{}

func BUNDRDNIterGet

func BUNDRDNIterGet(res *tc.TCIterator) interface{}

func BUNDRandomDistributionNormalConvert

func BUNDRandomDistributionNormalConvert(data interface{}, to_type int) interface{}

func BUNDRawMathFunctionsRouter

func BUNDRawMathFunctionsRouter(l *tc.TCExecListener, name string, q *deque.Deque) (bool, interface{}, error)

func BUNDTelemetryEvent

func BUNDTelemetryEvent(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDTelemetryLog

func BUNDTelemetryLog(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDTelemetryMetrics

func BUNDTelemetryMetrics(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDVersionBund

func BUNDVersionBund(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDVersionCore

func BUNDVersionCore(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUND_Random_Distribution_ExponentialConvert

func BUND_Random_Distribution_ExponentialConvert(data interface{}, to_type int) interface{}

func BUND_Type

func BUND_Type(x interface{}) int

func BUND_type_to_str

func BUND_type_to_str(t interface{}) string

func BUNDnnNormalize

func BUNDnnNormalize(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumCorrelation

func BUNDnumCorrelation(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumCorrelationKendall

func BUNDnumCorrelationKendall(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumCovariance

func BUNDnumCovariance(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumCrossEntropy

func BUNDnumCrossEntropy(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumEntropy

func BUNDnumEntropy(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumHellinger

func BUNDnumHellinger(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumJensenShannon

func BUNDnumJensenShannon(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumKullbackLeibler

func BUNDnumKullbackLeibler(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumLinearRegression

func BUNDnumLinearRegression(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMax

func BUNDnumMax(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMean

func BUNDnumMean(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMeanGeometric

func BUNDnumMeanGeometric(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMeanHarmonic

func BUNDnumMeanHarmonic(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMin

func BUNDnumMin(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMode

func BUNDnumMode(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumMomentAbout

func BUNDnumMomentAbout(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumScore

func BUNDnumScore(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumSkew

func BUNDnumSkew(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumSort

func BUNDnumSort(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumStdDev

func BUNDnumStdDev(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumStdErr

func BUNDnumStdErr(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumSum

func BUNDnumSum(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDnumVariance

func BUNDnumVariance(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomAddress

func BUNDrandomAddress(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomCC

func BUNDrandomCC(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomCompany

func BUNDrandomCompany(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomDistributionExponential

func BUNDrandomDistributionExponential(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomDistributionNormal

func BUNDrandomDistributionNormal(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomEmail

func BUNDrandomEmail(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomHipster

func BUNDrandomHipster(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomName

func BUNDrandomName(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomPassword

func BUNDrandomPassword(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomPhone

func BUNDrandomPhone(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomSSN

func BUNDrandomSSN(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomString

func BUNDrandomString(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomStringFromPattern

func BUNDrandomStringFromPattern(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomTextParagraph

func BUNDrandomTextParagraph(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDrandomUUID

func BUNDrandomUUID(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDruntimeIP

func BUNDruntimeIP(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDruntimeMAC

func BUNDruntimeMAC(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDruntimeSelfMemory

func BUNDruntimeSelfMemory(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDruntimeSelfUser

func BUNDruntimeSelfUser(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func BUNDstringGraph

func BUNDstringGraph(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)

func EnsureFloat

func EnsureFloat(i interface{}, dflt float64) float64

func EnsureFloatFromDict

func EnsureFloatFromDict(d *tc.TCDict, key string, dflt float64) float64

func ExecuteOperator

func ExecuteOperator(l *tc.TCExecListener, name string, x interface{}, q *deque.Deque) *tc.TCError

func ExecuteSingleArgumentFunction

func ExecuteSingleArgumentFunction(l *tc.TCExecListener, name string, q *deque.Deque) *tc.TCError

func InitStdlib

func InitStdlib()

func NumNorm

func NumNorm(data []float64) []float64

func NumStand

func NumStand(data []float64) []float64

func RegisterContextFunctionCallback

func RegisterContextFunctionCallback(name string, x_type int, fun TCContextGenericFunction)

func RegisterContextOperatorCallback

func RegisterContextOperatorCallback(name string, x_type int, y_type int, fun TCContextOperatorFunction)

func RegisterRawMathFunctionCallback

func RegisterRawMathFunctionCallback(name string, fun TCRawMathFunction)

func StdlibFormat

func StdlibFormat(q *deque.Deque) string

func StoreArgs

func StoreArgs()

Types

type BUNDEnv

type BUNDEnv struct {
	TC *tc.TCstate
}

func InitBUND

func InitBUND() *BUNDEnv

func (*BUNDEnv) Eval

func (env *BUNDEnv) Eval(code interface{}) *BUNDEnv

type BUND_Random_Distribution_Exponential

type BUND_Random_Distribution_Exponential struct {
	Dist *distuv.Exponential
}

func MakeRandomDistributionExponential

func MakeRandomDistributionExponential(rate float64) *BUND_Random_Distribution_Exponential

func (*BUND_Random_Distribution_Exponential) Entropy

func (*BUND_Random_Distribution_Exponential) Get

func (*BUND_Random_Distribution_Exponential) String

type BUND_Random_Distribution_Normal

type BUND_Random_Distribution_Normal struct {
	Dist *distuv.Normal
}

func MakeRandomDistributionNormal

func MakeRandomDistributionNormal(mu float64, sigma float64) *BUND_Random_Distribution_Normal

func (*BUND_Random_Distribution_Normal) Entropy

func (*BUND_Random_Distribution_Normal) Get

func (*BUND_Random_Distribution_Normal) String

type TCContextGenericFunction

type TCContextGenericFunction func(*tc.TCExecListener, interface{}) interface{}

func GetContextFunctionCallback

func GetContextFunctionCallback(name string, x interface{}) TCContextGenericFunction

type TCContextOperatorFunction

type TCContextOperatorFunction func(*tc.TCExecListener, interface{}, interface{}) interface{}

func GetContextOperatorCallback

func GetContextOperatorCallback(name string, x interface{}, y interface{}) TCContextOperatorFunction

type TCRawMathFunction

type TCRawMathFunction func(float64) float64

func GetRawMathFunctionCallback

func GetRawMathFunctionCallback(name string) TCRawMathFunction

Jump to

Keyboard shortcuts

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