|
From: | Philip Nienhuis |
Subject: | [Octave-bug-tracker] [bug #59410] [octave forge] (statistics) geomean with NaN |
Date: | Fri, 13 Nov 2020 16:04:20 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #7, bug #59410 (project octave): Matlab r2020b: >> format compact >> geomean([+Inf 1 2 3]) ans = Inf >> geomean([-Inf 1 2 3]) Error using geomean (line 27) X may not contain negative values or complex values. >> geomean([NaN 1 2 3]) ans = NaN >> geomean([NaN 1 2 3], 'omitnan') ans = 1.8171 >> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59410> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |