MCPcopy Create free account
hub / github.com/cogentcore/core / Quantiles

Function Quantiles

tensor/stats/stats/quantiles.go:66–72  ·  view source on GitHub ↗

Quantiles returns the given quantile(s) of non-Null, non-NaN elements in given IndexView indexed view of an table.Table, for given column name. If name not found, nil is returned -- use Try version for error message. Column must be a 1d Column -- returns nil for n-dimensional columns. qs are 0-1 val

(ix *table.IndexView, column string, qs []float64)

Source from the content-addressed store, hash-verified

64// Because this requires a sort, it is more efficient to get as many quantiles
65// as needed in one pass.
66func Quantiles(ix *table.IndexView, column string, qs []float64) []float64 {
67 colIndex := ix.Table.ColumnIndex(column)
68 if colIndex == -1 {
69 return nil
70 }
71 return QuantilesIndex(ix, colIndex, qs)
72}

Callers

nothing calls this directly

Calls 2

QuantilesIndexFunction · 0.85
ColumnIndexMethod · 0.80

Tested by

no test coverage detected