MCPcopy Create free account
hub / github.com/apache/arrow / test_mean

Method test_mean

c_glib/test/test-numeric-array.rb:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def test_mean
22 array = build_double_array([1.1, 2.2, nil])
23 assert_in_delta(array.values.inject(&:+) / 2,
24 array.mean)
25 end
26end

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected