File: beir7err2.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 (24 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//#define XERR
#include "screening.ih"

// called from errRisk1405.cc
// index is the biRad column index to use with BC
// and 0 when used with LC, as LC has no dose variation.


// static
double Screening::beir7Err(uint16_t age,
                           Round const &round, uint16_t index, double beta,
                           double eta, Modalities const &modalities)
{
    double risk = 1;

    double factor = beta * pow(age / 60.0, eta) / 1000;

//g_log << age << ' ' << index << ' ' << factor << '\n';

    for (ModBase const *modBase: modalities.use(round.modalityIndices()))
        risk *= (1 + factor * modBase->dose(index));

    return risk;
}