Documentation ¶
Index ¶
- func Discretise(d [][]float64, bins []int, min, max []float64) [][]int
- func DiscretiseVector(d []float64, bins int, min, max float64) []int
- func ExtractColumns(data [][]float64, indices []int) [][]float64
- func GetMinMax(data [][]float64) ([]float64, []float64)
- func MakeUnivariate(d [][]int, bins []int) []int
- func MakeUnivariateRelabelled(d [][]int, bins []int) []int
- func ReadData(filename string) (r [][]float64)
- func Relabel(d []int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discretise ¶
Discretise takes a two-dimensional slice and discretises it. Min/max and number of bins must be provided for each column. The first index of the data are the rows and the second index the columns, i.e., d[r][c] is the data point in the r-th row and c-th column
func DiscretiseVector ¶
DiscretiseVector takes a one-dimensional slice and discretises it. Min/max and number of bins must be provided.
func ExtractColumns ¶
ExtractColumns [...]
func GetMinMax ¶
GetMinMax get the minimum and maximum values The return value are two arrays. The number of elements corresponds to the number of columns in the data. The first array contains the minimum values. The second array contains the minimum values.
func MakeUnivariate ¶
MakeUnivariate takes a two-dimensional discretised slice and returns a one-dimensional representation of it.
func MakeUnivariateRelabelled ¶
MakeUnivariateRelabelled takes a two-dimensional discretised slice and returns a one-dimensional representation of it.
Types ¶
This section is empty.