Learn R Programming

libamtrack (version 0.6.3)

AT.fluence.weighted.E.MeV.u: AT.fluence.weighted.E.MeV.u

Description

Computes the fluence-weighted average energy of a particle field Needed by SuccessiveConvolutions

Usage

AT.fluence.weighted.E.MeV.u(E.MeV.u, fluence.cm2)

Arguments

E.MeV.u
energy of particles in the mixed particle field (array of size number.of.field.components) (see also E.MeV.u).
fluence.cm2
fluences of particles in the mixed particle field (array of size number.of.field.components).

Value

  • average.E.MeV.uaverage.E.MeV.u

See Also

View the C source code here: http://sourceforge.net/apps/trac/libamtrack/browser/tags/0.6.3/src/AT_Phy sicsRoutines.c#L578

Examples

Run this code
# fluence- and dose-weighted mean energy for a simple mixed field
# of high and low (99/1) energy protons
AT.fluence.weighted.E.MeV.u( E.MeV.u       = c(100, 1),
                             fluence.cm2   = c(99e8, 1e8)) 
AT.dose.weighted.E.MeV.u( E.MeV.u       = c(100, 1),
                          particle.no   = c(1001, 1001),
                          fluence.cm2   = c(99e8, 1e8), 
                          material.no   = 1,                   # water
                                   stopping.power.source.no = 2)

Run the code above in your browser using DataLab