analysis

package
v0.0.0-...-2ae79de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableStats

func AvailableStats() map[string]func(stats.Float64Data) (float64, error)

func Count

func Count(data stats.Float64Data) (float64, error)

func FormatSummary

func FormatSummary(data map[string][]float64, columns []string, statsorder []string) string

func PrintSummary

func PrintSummary(data map[string][]float64, columns []string, statsorder []string)

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 Q2

func Q2(input stats.Float64Data) (float64, error)

func Q3

func Q3(input stats.Float64Data) (float64, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL