linear

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//MaximumTrendPeriod = 144
	MaximumTrendPeriod = 89
	TrendDelta         = float64(0.0618)
)

Variables

This section is empty.

Functions

func CrossTrend

func CrossTrend(raw pandas.DataFrame) pandas.DataFrame

CrossTrend 原则上是不抄底, 当底部上移时, 观察压力线和支撑线的相对关系

func CurveRegression

func CurveRegression(S stat.Series, argv ...int) stat.Series

CurveRegression 曲线回归

curve regression
https://blog.csdn.net/llittleSun/article/details/115045660
默认只预1个周期
argv 第一个参数为数据长度, 即周期数, 默认为S的长度

func FindPeaks

func FindPeaks()

func LeastSquares

func LeastSquares(x []float64, y []float64) (slope float64, intercept float64)

LeastSquares 最简单的最小二乘法

func PeakDetect

func PeakDetect(vals []float64, delta float64) ([]int, []float64, []int, []float64)

PeakDetect Finds the local maxima and minima ("peaks") in the vector

Returns four arrays -> min indices, min values, max indices, max values

A point is considered a maximum peak if it has the maximal
value, and was preceded (to the left) by a value lower by DELTA.

func Predict

func Predict(y, slope, intercept float64) float64

func TrendLine

func TrendLine(raw pandas.DataFrame) pandas.DataFrame

TrendLine 原则上是不抄底, 当底部上移时, 观察压力线和支撑线的相对关系

Types

This section is empty.

Jump to

Keyboard shortcuts

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