regression

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package regression contains a simple Thiel-Sen estimator for linear regression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinearRegression

func LinearRegression(xData, yData []float64) (float64, float64)

LinearRegression returns the slope and intercept, using Thiel-Sen estimator. This is the median of the slopes defined only from pairs of points having distinct x-coordinates.

func Median

func Median(x []float64) float64

Median returns the median value of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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