Hi. Thanks for your interest in Commons Math.
Below there is a copy of your message, as it appears on this mailing list. Some parts are obviously missing (perhaps because they were attachments). If you'd like to suggest an improvement, please file a report on JIRA: https://issues.apache.org/jira/projects/MATH Regards, Gilles Le ven. 18 août 2023 à 00:41, 杨心文 蚊子 <maliu...@qq.com.invalid> a écrit : > > Hello, > These are something need to be modify in user guide of commons.math. > > > Math – The Commons Math User Guide - Statistics (apache.org) > > > > > The code above will display the t-statistic associated with a one-sample > t-test comparing the mean of the observed values against mu.To > compare the mean of a dataset described by a StatisticalSummary to > a fixed value:double[] observed ={1d, 2d, 3d}; double mu = 2.5d; > SummaryStatistics sampleStats = new SummaryStatistics(); for (int i = 0; i < > observed.length; i++) { sampleStats.addValue(observed[i]); } > System.out.println(TestUtils.t(mu, observed)); To be: > > > > The code above will display the t-statistic associated with a one-sample > t-test comparing the mean of the observed values against mu. > To compare the mean of a dataset described by > a SummaryStatistics to a fixed value: > > double[] observed ={1d, 2d, 3d}; double mu = 2.5d; SummaryStatistics > sampleStats = new SummaryStatistics(); for (int i = 0; i < observed.length; > i++) { sampleStats.addValue(observed[i]); } > System.out.println(TestUtils.t(mu, sampleStats)); > > > > > > 杨心文 蚊子 > maliu...@qq.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org