Jpp
18.3.1
the software that should make you happy
|
In this implementation of the JMarkovIntegrator interface, the sample distribution is built up out of correlated path vertices. More...
#include <JMarkovIntegrator.hh>
Public Member Functions | |
JExperimentalIntegrator (double _lambda) | |
constructor. More... | |
~JExperimentalIntegrator () | |
vector< double > | integrate (int N, int nscat, JSourceModel *src, JScatteringModel *sm, JTargetModel *trg, double lambda_abs) |
Integrate with N samples. More... | |
vector< double > | dummy_integrate (int N, int nscat, JSourceModel *src, JScatteringModel *sm, JTargetModel *trg, double lambda_abs) |
Integrate a test function with N samples. More... | |
vector< JPhotonPath > | get_diagnostic_ensemble (int N, int nscat, JSourceModel *src, JScatteringModel *sm, JTargetModel *trg, double lambda_abs) |
Return photon paths generated with the generatePath method. More... | |
Protected Member Functions | |
JPosition3D | generatePosition (int nscat, int nv, double &winv) |
dummy implementation More... | |
JPhotonPath | generatePath (int nscat, double &winv, JPosition3D source_pos, JPosition3D target_pos) |
JPosition3D | getFirstScatteringVertex (int nscat, JPosition3D src_pos, JPosition3D trg_pos, double &winv) |
recursive function to randomly generate the first scattering vertex for isotropic scattering from a source to a target More... | |
virtual JPhotonPath | generatePath (int nscat, double &winv) |
Generate a random photon path with a given number of scatterings. More... | |
Protected Attributes | |
JExpRsqInvGenerator | gen |
In this implementation of the JMarkovIntegrator interface, the sample distribution is built up out of correlated path vertices.
lambda is the effective length scale defined as:
1/lambda := 1/lambda_scat + 1/lambda_abs
Definition at line 633 of file JMarkovIntegrator.hh.
|
inline |
|
inline |
Definition at line 641 of file JMarkovIntegrator.hh.
|
inlineprotectedvirtual |
dummy implementation
Implements JMARKOV::JMarkovIntegrator.
Definition at line 646 of file JMarkovIntegrator.hh.
|
inlineprotected |
Definition at line 650 of file JMarkovIntegrator.hh.
|
inlineprotected |
recursive function to randomly generate the first scattering vertex for isotropic scattering from a source to a target
Definition at line 671 of file JMarkovIntegrator.hh.
|
inherited |
Integrate with N samples.
Returns a vector with the contribution to the integral of each sample. The mean of those values is the estimate of the result of the integral, while the distribution itself can be used to estimate the stability of the result. In this distribution, you want to avoid
Definition at line 130 of file JMarkovIntegrator.hh.
|
inherited |
Integrate a test function with N samples.
This can be used as a sanity check for derived classes of JMarkovIntegrator.
The integral should yield 1 when the complete relevant part of the volume is taken into account. If it does not, it may be a sign that the implementation is not correct.
Returns a vector with the contribution to the integral of each sample.
Definition at line 143 of file JMarkovIntegrator.hh.
|
inherited |
Return photon paths generated with the generatePath method.
This can be used to identify the parts of parameter space that are over- or undersampled in a given problem so that the integrator may be optimized to handle those better.
Definition at line 157 of file JMarkovIntegrator.hh.
|
inlineprotectedvirtualinherited |
Generate a random photon path with a given number of scatterings.
winv must be set to the inverted probability density to generate this particular path.
Definition at line 94 of file JMarkovIntegrator.hh.
|
protected |
Definition at line 685 of file JMarkovIntegrator.hh.