numeric

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(series []float64) ([]float64, error)

Abs returns the absolute values of series.

func AutoCorrelation

func AutoCorrelation(series []float64, lags int) (float64, error)

AutoCorrelation is the correlation of a signal with a delayed copy of itself as a function of delay.

func Correlation

func Correlation(series1, series2 []float64) (float64, error)

Correlation describes the degree of relationship between data series.

func Covariance

func Covariance(series1, series2 []float64) (float64, error)

Covariance describes the degree of relationship between data series.

func CovariancePopulation

func CovariancePopulation(series1, series2 []float64) (float64, error)

CovariancePopulation describes the degree of relationship for entire population between data series.

func CumulativeSum

func CumulativeSum(series []float64) ([]float64, error)

CumulativeSum returns the cumulative sum of the data series.

func EuclideanDistance

func EuclideanDistance(series1, series2 []float64) (float64, error)

EuclideanDistance returns the summarized Euclidean distance between two points of the data series.

func InLimit

func InLimit(value any) bool

func KolmogorovSmirnov

func KolmogorovSmirnov(series1, series2 []float64) (float64, error)

KolmogorovSmirnov returns the largest distance between two empirical data series.

func Max

func Max(series []float64) (float64, error)

Max returns the maximum value of the data series.

func Mean

func Mean(series []float64) (float64, error)

Mean returns the mean of the data series.

func Min

func Min(series []float64) (float64, error)

Min returns the minimum value of the data series.

func MinMaxNormalize

func MinMaxNormalize(series []float64) ([]float64, error)

MinMaxNormalize returns the scale function of the data series.

func Normalize

func Normalize(series []float64) ([]float64, error)

Normalize returns the scale function of the data series.

func Prediction

func Prediction(source []float64, length int) []float64

Prediction returns a Time Series Forecast (TSF) by building models based on historical data series.

func StandardDeviation

func StandardDeviation(series []float64) (float64, error)

StandardDeviation returns the standard deviation of the data series.

func Standardize

func Standardize(series []float64) ([]float64, error)

Standardize returns the scale function of the data series.

func Sum

func Sum(series []float64) (float64, error)

Sum returns the summed numbers of the data series.

func Variance

func Variance(series []float64) (float64, error)

Variance describes the degree of relationship between data series.

Types

type FunctionSeries

type FunctionSeries struct {
	X []float64
	Y []float64
}

FunctionSeries is a 1-dimensional function.

func ExponentialRegression

func ExponentialRegression(series []float64) (FunctionSeries, error)

ExponentialRegression models an exponential relationship within a data set.

func LinearInterpolation

func LinearInterpolation(min, max float64, points int) FunctionSeries

LinearInterpolation sets values at positions between data points.

func LinearRegression

func LinearRegression(series []float64) (FunctionSeries, error)

LinearRegression models an linear relationship within a data set.

Jump to

Keyboard shortcuts

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