Jpp test-rotations-old
the software that should make you happy
|
Implementation of JMarkovEnsembleIntegrator interface with 1D histograms. More...
#include <JMarkovIntegrator.hh>
Public Member Functions | |
JMarkovEnsembleIntegrator1D (const vector< JPhotonPath > &_ensemble, JTargetModel *_trg, int _nbinsx, int _nbinsy, int _nbinsz) | |
~JMarkovEnsembleIntegrator1D () | |
void | free_scattering_vertex_gens () |
void | writeHistograms () |
write the histograms filled from the ensemble | |
vector< double > | integrate (int N, int nscat, JSourceModel *src, JScatteringModel *sm, JTargetModel *trg, double lambda_abs) |
Integrate with N samples. | |
vector< double > | dummy_integrate (int N, int nscat, JSourceModel *src, JScatteringModel *sm, JTargetModel *trg, double lambda_abs) |
Integrate a test function with N samples. | |
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. | |
Protected Member Functions | |
void | init_scattering_vertex_generators (int nscat) |
JPosition3D | generateScatteringVertexPosition (int nscat, int nv, double &winv) |
JPosition3D | generatePosition (int nscat, int nv, double &winv) |
generate a position for vertex nv for the given number of scatterings, winv will be set to 1/weight | |
int | getIndex (int nv, int nscat) |
return the internal index for a given number of scatterings and vertex number | |
void | initgenerators (int nscat) |
initialize the position generators for a given number of scatterings (i.e. create histograms and fill them from the ensemble) | |
void | init_target_generator (int nscat) |
initialize the generator for a target vertex for a given number of scatterings | |
void | free_target_gens () |
virtual JPhotonPath | generatePath (int nscat, double &winv) |
Generate a random photon path with a given number of scatterings. | |
Protected Attributes | |
vector< JHistGenerator * > | gens |
vector< JSphereGenerator * > | target_gens |
vector< JPhotonPath > | ensemble |
int | nbinsx |
int | nbinsy |
int | nbinsz |
JTargetModel * | trg |
JPosition3D | source_position |
Implementation of JMarkovEnsembleIntegrator interface with 1D histograms.
Definition at line 313 of file JMarkovIntegrator.hh.
|
inline |
Definition at line 317 of file JMarkovIntegrator.hh.
|
inline |
Definition at line 319 of file JMarkovIntegrator.hh.
|
inline |
Definition at line 324 of file JMarkovIntegrator.hh.
|
inlinevirtual |
write the histograms filled from the ensemble
Implements JMARKOV::JMarkovEnsembleIntegrator.
Definition at line 330 of file JMarkovIntegrator.hh.
|
inlineprotectedvirtual |
Implements JMARKOV::JMarkovEnsembleIntegrator.
Definition at line 347 of file JMarkovIntegrator.hh.
|
inlineprotectedvirtual |
Implements JMARKOV::JMarkovEnsembleIntegrator.
Definition at line 399 of file JMarkovIntegrator.hh.
|
inlineprotectedvirtualinherited |
generate a position for vertex nv for the given number of scatterings, winv will be set to 1/weight
Implements JMARKOV::JMarkovIntegrator.
Definition at line 228 of file JMarkovIntegrator.hh.
|
inlineprotectedinherited |
return the internal index for a given number of scatterings and vertex number
Definition at line 251 of file JMarkovIntegrator.hh.
|
inlineprotectedinherited |
initialize the position generators for a given number of scatterings (i.e. create histograms and fill them from the ensemble)
Definition at line 263 of file JMarkovIntegrator.hh.
|
inlineprotectedinherited |
initialize the generator for a target vertex for a given number of scatterings
Definition at line 272 of file JMarkovIntegrator.hh.
|
inlineprotectedinherited |
Definition at line 295 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 408 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 301 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 302 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 303 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 304 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 305 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 306 of file JMarkovIntegrator.hh.
|
protectedinherited |
Definition at line 307 of file JMarkovIntegrator.hh.