Documentation ¶
Index ¶
- Constants
- type AggregationMethod
- type Name
- type Series
- func (s Series) AddElement(element element.Element) (Series, error)
- func (s Series) Aggregate(method AggregationMethod) (element.Element, error)
- func (s Series) Append(s2 Series) (Series, error)
- func (s Series) CanAggregateWith(method AggregationMethod) error
- func (s Series) Delete() Series
- func (s Series) Floats() ([]float64, error)
- func (s Series) GetAggregatedMethod() AggregationMethod
- func (s Series) GetElement(index int) (element.Element, error)
- func (s Series) GetGroupedElement() (element.Element, error)
- func (s Series) GetName() Name
- func (s Series) GetType() Type
- func (s Series) Join(separator string) (Series, error)
- func (s Series) Len() int
- func (s Series) Mean() (float64, error)
- func (s Series) Slice(start int, end int) (Series, error)
- func (s Series) Split(separator string, limit int) (Series, error)
- func (s Series) Sum() (float64, error)
- func (s Series) UpdateElements(elements element.Elements) (Series, error)
- type Type
Constants ¶
View Source
const ( Mean = AggregationMethod("Mean") Count = AggregationMethod("Count") Sum = AggregationMethod("Sum") None = AggregationMethod("") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationMethod ¶
type AggregationMethod string
type Series ¶
type Series struct { Name Name Elements element.Elements AggregatedMethod AggregationMethod }
Series list of same type of elements
func (Series) Aggregate ¶
func (s Series) Aggregate(method AggregationMethod) (element.Element, error)
func (Series) CanAggregateWith ¶
func (s Series) CanAggregateWith(method AggregationMethod) error
CanAggregateWith Check if the series can be aggregated with the method
func (Series) GetAggregatedMethod ¶
func (s Series) GetAggregatedMethod() AggregationMethod
func (Series) GetGroupedElement ¶
GetGroupedElement returns a single element if all elements in the series are same
Click to show internal directories.
Click to hide internal directories.