File: functionq.cc

package info (click to toggle)
simrisc 16.06.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,889; fortran: 669; makefile: 112; ansic: 112; sh: 107
file content (17 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define XERR
#include "tumor.ih"

// For the std. simulations survival[0] and survival[1] are returning the
// a..d values of Survival: type:

// For LC:
// "Supplementary's" tables S3 and S4 are loaded by Survival. and the table
// S4's a..d values are obtained from Survival::op[0..3], see survival.h

extern size_t g_caseIdx;
extern size_t g_err;

double Tumor::functionQ(double years) const
{
    return d_survival[0].value() * pow(years, d_survival[1].value());
}