mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
fix float64 series use mean or stdev function result is zero
This commit is contained in:
parent
eb6e5cda39
commit
8773c220f5
|
@ -13,7 +13,7 @@ type Float64Series struct {
|
|||
func NewFloat64Series(v ...float64) *Float64Series {
|
||||
s := &Float64Series{}
|
||||
s.Slice = v
|
||||
s.SeriesBase.Series = s.Slice
|
||||
s.SeriesBase.Series = &s.Slice
|
||||
return s
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user