Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
compute_state_ruina.cc 270 B
#include <cassert>

#include <cmath>

#include "compute_state_ruina.hh"

double state_update_ruina(double tau, double uol, double old_state) {
  if (uol == 0)
    return old_state;

  double const ret = old_state - uol * std::log(uol / tau);
  return ret / (1 + uol);
}