Documentation
¶
Index ¶
- func Constant(index []time.Time, value float64) timeseriesgo.TimeSeries
- func MakeSeriesIndex(start time.Time, interval time.Duration, count int) []time.Time
- func RandomWalk(index []time.Time, startValue float64) timeseriesgo.TimeSeries
- func Repeat(pattern timeseriesgo.TimeSeries, start time.Time, end time.Time) timeseriesgo.TimeSeries
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 ¶
*
- 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.
Click to show internal directories.
Click to hide internal directories.