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

Function logistic

src/modules/regress/marginal.cpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace regress {
28
29inline double logistic(double x) {
30 return 1. / (1. + std::exp(-x));
31}
32
33/**
34 * @brief Helper function that computes the final statistics for the marginal variance

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected