Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyList = fmt.Errorf("empty price list passed in")
)
Functions ¶
func Average ¶
Average returns the average value of a list of sdk.Dec. Returns error if ds is empty list.
func MedianDeviation ¶
MedianDeviation returns the standard deviation around the median of a list of sdk.Dec. Returns error if ds is empty list. MedianDeviation = sqrt(∑((d - median)^2 / len(ds)))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.