Documentation ¶
Index ¶
- func AvailableStats() map[string]func(stats.Float64Data) (float64, error)
- func Count(data stats.Float64Data) (float64, error)
- func FormatSummary(data map[string][]float64, columns []string, statsorder []string) string
- func PrintSummary(data map[string][]float64, columns []string, statsorder []string)
- func Q1(input stats.Float64Data) (float64, error)
- func Q2(input stats.Float64Data) (float64, error)
- func Q3(input stats.Float64Data) (float64, error)
- func SummarizeFields(columns []string, data map[string][]float64, ...) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableStats ¶
func AvailableStats() map[string]func(stats.Float64Data) (float64, error)
func FormatSummary ¶
func PrintSummary ¶
print summary statistics for data set data , map of column/field to decimals columns , columns to include in summary statsorder , ordered statsitical calculations to include in summary
func Q1 ¶
func Q1(input stats.Float64Data) (float64, error)
because these functions are used by Summarize they must accept a single argument stats.Float64Data and return a float64 and error i.e they need to be of type func(stats.Float64Data) (float64, error) It would be nice to not repeat stats.Quartile function call, but that would require a lot of refactoring that there isn't time for
func SummarizeFields ¶
func SummarizeFields(columns []string, data map[string][]float64, calculation func(stats.Float64Data) (float64, error)) string
columns array of strings that correspond to columns in a csv, e.g ["value", "income", "age"] the order columns appear in the array is the order they will appear on the summary left to right
Types ¶
This section is empty.