1 #ifndef _theplu_yat_statistics_kaplan_meier 2 #define _theplu_yat_statistics_kaplan_meier 29 namespace statistics {
68 unsigned int at_risk(
void)
const;
78 unsigned int event(
void)
const;
91 unsigned int censored_;
115 void add(
double time,
bool event);
123 void add(
double time,
unsigned int event,
unsigned int censored);
159 mutable bool updated_;
160 mutable std::map<double, TimePoint> data_;
161 void update(
void)
const;
const_iterator find(double time) const
const_iterator begin(void) const
The Department of Theoretical Physics namespace as we define it.
void add(double time, bool event)
unsigned int event(void) const
unsigned int censored(void) const
Kaplan-Meier estimator.
Definition: KaplanMeier.h:42
const_iterator upper_bound(double time) const
double survival_proportion(void) const
const_iterator lower_bound(double time) const
const_iterator end(void) const
Definition: KaplanMeier.h:48
unsigned int at_risk(void) const
std::map< double, TimePoint >::const_iterator const_iterator
Definition: KaplanMeier.h:101