Class TempLat::UnbinnedRadialProjectionResult
template <typename T>
ClassList > TempLat > UnbinnedRadialProjectionResult
A class which holds the result of a radial projection without binning. For each possible value of the Fourier coordinate it saves: the average value, the sample variance (= <f^2> - <f>^2 ) of the values, and the number of entries in a bin (multiplicity). More...
#include <unbinnedradialprojectionresult.h>
Inherits the following classes: std::vector< std::tuple< T, RadialProjectionSingleDatum< T > > >
Public Types
| Type | Name |
|---|---|
| typedef typename GetFloatType< T >::type | floatType |
Public Functions
| Type | Name |
|---|---|
| UnbinnedRadialProjectionResult (size_t nBins, bool pIsInFourier=false) |
|
| DEVICE_FORCEINLINE_FUNCTION void | add_device (device::Idx i, const T & value, const T & weight=(T) 1) const |
| UnbinnedRadialProjectionResult & | finalize (MPICommReference comm) RadialProjector calls this as the last step, does the transposition of the result vecotrs into one vector of RadialProjectionSingleBinAndValue<T>. |
| auto | integrate (bool dummy) |
| UnbinnedRadialProjectionResult & | renormalizeBins () |
| UnbinnedRadialProjectionResult & | rescale (LL rescaler) Rescale the results with a function of x or k (bin location), using for now a simple lambda function of single float parameter, which is your x in f(x). In other words, you give f(x). |
| UnbinnedRadialProjectionResult & | rescaleBins (T scale) Rescale the bin positions with a normalization (for example dimensionful). |
| void | setBinWidths () |
| UnbinnedRadialProjectionResult & | sumInsteadOfAverage () |
| std::string | toString (int verbosity=0) const |
Detailed Description
Upon call to finalize, constructs the parent vector, which you can use as you wish. This contains pairs for each value of the momentum, with the momentum (first) and the value result (second), as a RadialProjectionSingleDatum
Unit test: ctest -R test-unbinnedradialprojectionresult
Public Types Documentation
typedef floatType
Public Functions Documentation
function UnbinnedRadialProjectionResult
inline TempLat::UnbinnedRadialProjectionResult::UnbinnedRadialProjectionResult (
size_t nBins,
bool pIsInFourier=false
)
function add_device
inline DEVICE_FORCEINLINE_FUNCTION void TempLat::UnbinnedRadialProjectionResult::add_device (
device::Idx i,
const T & value,
const T & weight=(T) 1
) const
function finalize
RadialProjector calls this as the last step, does the transposition of the result vecotrs into one vector of RadialProjectionSingleBinAndValue<T>.
inline UnbinnedRadialProjectionResult & TempLat::UnbinnedRadialProjectionResult::finalize (
MPICommReference comm
)
function integrate
function renormalizeBins
function rescale
Rescale the results with a function of x or k (bin location), using for now a simple lambda function of single float parameter, which is your x in f(x). In other words, you give f(x).
template<typename LL>
inline UnbinnedRadialProjectionResult & TempLat::UnbinnedRadialProjectionResult::rescale (
LL rescaler
)
function rescaleBins
Rescale the bin positions with a normalization (for example dimensionful).
inline UnbinnedRadialProjectionResult & TempLat::UnbinnedRadialProjectionResult::rescaleBins (
T scale
)
function setBinWidths
function sumInsteadOfAverage
inline UnbinnedRadialProjectionResult & TempLat::UnbinnedRadialProjectionResult::sumInsteadOfAverage ()
function toString
Friends Documentation
friend RadialProjector
template<typename S>
class TempLat::UnbinnedRadialProjectionResult::RadialProjector (
RadialProjector
)
friend operator+
template<typename S>
UnbinnedRadialProjectionResult < S > TempLat::UnbinnedRadialProjectionResult::operator+ (
const UnbinnedRadialProjectionResult < S > & a,
const UnbinnedRadialProjectionResult < S > & b
)
friend operator<<
inline std::ostream & TempLat::UnbinnedRadialProjectionResult::operator<< (
std::ostream & ostream,
const UnbinnedRadialProjectionResult & rpr
)
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/measuringtools/projectionhelpers/unbinnedradialprojectionresult.h