rsod

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MISSDATA_THRESHOLD float64 = 30

Variables

This section is empty.

Functions

func BaselineFitPredict

func BaselineFitPredict(frame *data.Frame, historyFrame *data.Frame, options BaselineOptions) (*data.Frame, error)

func OutlierFitPredict

func OutlierFitPredict(frame *data.Frame, options OutlierOptions) ([]float64, error)

func RSODForecaster

func RSODForecaster(frame *data.Frame, historyFrame *data.Frame, options ForecasterOptions) (*data.Frame, error)

func RSODStorageInit

func RSODStorageInit() bool

func WriteArrowRecordToCSV

func WriteArrowRecordToCSV(record arrow.Record, filename string) error

Types

type BaselineOptions

type BaselineOptions struct {
	TrendType           string  `json:"trend_type"`
	IntervalMins        int     `json:"interval_mins"`
	ConfidenceLevel     float64 `json:"confidence_level"`
	AllowNegativeBounds bool    `json:"allow_negative_bounds"`
	StdDevMultiplier    float64 `json:"std_dev_multiplier,omitempty"`
	UUID                string  `json:"uuid"`
}

type ForecasterOptions

type ForecasterOptions struct {
	ModelName           string  `json:"model_name"`
	Periods             []uint  `json:"periods"`
	UUID                string  `json:"uuid"`
	Budget              float32 `json:"budget,omitempty"`
	NumThreads          int     `json:"num_threads,omitempty"`
	Nlags               int     `json:"n_lags,omitempty"`
	StdDevMultiplier    float64 `json:"std_dev_multiplier,omitempty"`
	AllowNegativeBounds bool    `json:"allow_negative_bounds,omitempty"`
}

type LLMOptions

type LLMOptions struct {
	ModelName   string `json:"model_name"`
	Temperature int    `json:"temperature"`
	MaxTokens   int    `json:"max_tokens"`
	UUID        string `json:"uuid"`
}

type OutlierOptions

type OutlierOptions struct {
	ModelName string `json:"model_name"`
	Periods   []uint `json:"periods"`
	UUID      string `json:"uuid"`
}

Jump to

Keyboard shortcuts

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