ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
logistic.cpp File Reference

Logistic(μ, s) family implementation. More...

#include "DistributionCommon.h"
#include <cmath>
#include <memory>
#include <optional>
#include <random>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for logistic.cpp:

Go to the source code of this file.

Namespaces

namespace  provsql

Detailed Description

Logistic(μ, s) family implementation.

The location-scale family whose CDF is the logistic sigmoid \(F(x) = \sigma((x-\mu)/s)\) and whose quantile is the logit. This is the natural noise for a latent-utility / logit-link selection model: a threshold event eps < score with eps ~ Logistic(0,1) has probability \(\sigma(\text{score})\) exactly (a Normal eps would give the probit \(\Phi\), a different link off by a ~1.6 scale factor).

Self-contained: the class is file-local and reaches the evaluators only through the family registrar at the bottom (no comparator / closure rule – a difference of logistics is not logistic, so those fall through to the family-agnostic quadrature / Monte Carlo).

Definition in file logistic.cpp.