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

Method Splits

core/splits.go:278–285  ·  view source on GitHub ↗

Splits returns the split proportion for each child element.

()

Source from the content-addressed store, hash-verified

276
277// Splits returns the split proportion for each child element.
278func (sl *Splits) Splits() []float32 {
279 nc := len(sl.Children)
280 sv := make([]float32, nc)
281 for i := range nc {
282 sv[i] = sl.Split(i)
283 }
284 return sv
285}
286
287// Split returns the split proportion for given child index
288func (sl *Splits) Split(idx int) float32 {

Callers

nothing calls this directly

Calls 1

SplitMethod · 0.95

Tested by

no test coverage detected