Documentation ¶
Index ¶
- func RandomIntn(n int, max int, seed uint64) []int
- func RandomU(n int, seed uint64) []float32
- func ReadCSV(fname string) (dataframe [][]string, err error)
- func ReadFloats(s *bufio.Scanner) ([]float64, error)
- func ReadLines(s *bufio.Scanner) ([]string, error)
- func ReadWords(s *bufio.Scanner) ([]string, error)
- func WriteCSV(table [][]string, fname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomIntn ¶
RandomIntn returns n random integer between 0 and max - 1
func ReadFloats ¶
ReadFloats reads float64 numbers from text input, return as []float64 Example: to read floats from standard input
xs, err := ReadFloats(bufio.NewScanner(os.Stdin))
func ReadLines ¶
ReadLines reads lines from text input, returns as a []string. Example:
xs, err := ReadLines(bufio.NewScanner(os.Stdin))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.