MCPcopy Create free account
hub / github.com/apache/madlib / run

Method run

src/modules/stats/t_test.cpp:113–123  ·  view source on GitHub ↗

* @brief Perform the one-sample t-test transition step */

Source from the content-addressed store, hash-verified

111 * @brief Perform the one-sample t-test transition step
112 */
113AnyType
114t_test_one_transition::run(AnyType &args) {
115 TTestTransitionState<MutableArrayHandle<double> > state = args[0];
116 double x = args[1].getAs<double>();
117
118 updateCorrectedSumOfSquares(
119 state.numX.ref(), state.x_sum.ref(), state.correctedX_square_sum.ref(),
120 1, x, 0);
121
122 return state;
123}
124
125/**
126 * @brief Perform the two-sample t-test transition step

Callers

nothing calls this directly

Calls 4

NullFunction · 0.85
tStatsToResultFunction · 0.85
cdfFunction · 0.50

Tested by

no test coverage detected