Documentation
¶
Index ¶
- func Fit(x, y []float64, degree int) ([]float64, error)
- func Format(f float64) string
- func GenerateFloats(num int, gen Generator) []float64
- func IO10(f float64) int
- func IO2(f float64) int
- func O10(f float64) int
- func O2(f float64) int
- func Series(factor float64, limit int) []float64
- func Sine(factor float64, limit int, v float64) []float64
- func SineEvolve(i int, p float64) float64
- func String(length int) string
- func StringWithCharset(length int, charset string) string
- func ToFloat(ii []int) []float64
- func ToInt(ff []float64) []int
- type AggregateStats
- type EMA
- type Generator
- type Indicators
- type Network
- type RNum
- type RSI
- type Spectrum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fit ¶
Fit fits the given series of x and y into a polynomial function of the given degree out put is a vector with the coefficients of the corresponding powers of x c[0] + c[1]x + c[2]x^2 + c[3]x^3 + ...
func GenerateFloats ¶
GenerateFloats generates a series of floats
func IO10 ¶
IO10 returns the order of the value on a decimal basis NOTE : this does not differentiate between values bigger or smaller than 1 NOTE : It s effectively a value inverse of the O10 NOTE : contradictory to O10 this will differentiate based on the sign NOTE : it returns results in a range of 10, with 10 representing the largest absolute value !!!
func IO2 ¶
IO2 returns the order of the value on a binary basis NOTE : this does not differentiate between values bigger or smaller than 1 NOTE : It s effectively a value inverse of the O2 NOTE : contradictory to O2 this will differentiate based on the sign NOTE : it returns results in a range of 10, with 10 representing the largest absolute value !!!
func O10 ¶
O10 returns the order of the value on a decimal basis NOTE : this does not differentiate between values bigger or smaller than 1
func O2 ¶
O2 returns the binary order of the value on a decimal basis NOTE : this does not differentiate between values bigger or smaller than 1
func SineEvolve ¶
SineEvolve will evolve the given int to a sine
func StringWithCharset ¶
Types ¶
type AggregateStats ¶
AggregateStats are the aggregate stats of the bucket windows.
func NewAggregateStats ¶
func NewAggregateStats(indicators *Indicators) AggregateStats
NewAggregateStats create new aggregate stats from the given indicators
type EMA ¶
type EMA struct {
// contains filtered or unexported fields
}
EMA calculates the exponential moving average for the given sample.
type Generator ¶
func VaryingSine ¶
VaryingSine defines a generator which varies around the given sine
type Indicators ¶
Indicators is a stats collector based on the rsi and ema indicators
func (*Indicators) Add ¶
func (s *Indicators) Add(f float64)
Add adds the given value to the indicator collectors.
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
Network defines an ml network.
type RNum ¶
type RNum struct { Amplitude float64 Frequency int Cos complex128 }
RNum defines a complex number attributes