generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Constant

func Constant(index []time.Time, value float64) timeseriesgo.TimeSeries

*

  • Generates a TimeSeries with constant value at specified timestamps. *
  • @param index A slice of time.Time representing the timestamps for the DataPoints.
  • @param value The constant value for each DataPoint. *
  • @return A TimeSeries with DataPoints at the specified timestamps, all having the same value.

func MakeSeriesIndex

func MakeSeriesIndex(start time.Time, interval time.Duration, count int) []time.Time

*

  • Creates a slice of time.Time representing a series of timestamps. *
  • @param start The starting time.Time for the series.
  • @param interval The duration between consecutive timestamps.
  • @param count The number of timestamps to generate. *
  • @return A slice of time.Time with the specified number of timestamps.

func RandomWalk

func RandomWalk(index []time.Time, startValue float64) timeseriesgo.TimeSeries

func Repeat

func Repeat(pattern timeseriesgo.TimeSeries, start time.Time, end time.Time) timeseriesgo.TimeSeries

Types

This section is empty.

Jump to

Keyboard shortcuts

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