Streaming multi-origin MSD accumulator with arbitrary-axis split.
More...
#include <src/include/internal/trajectory.hpp>
|
| | MsdAccumulator (std::size_t nParticles, std::size_t maxLag, std::size_t originStride, double dt, const double axis[3]) |
| bool | valid () const noexcept |
| std::size_t | numParticles () const noexcept |
| std::size_t | framesSeen () const noexcept |
| std::size_t | numLags () const noexcept |
| bool | push (const double *xyz, std::size_t nParticles, const double *box9OrNull=nullptr) |
| | Push one frame of coordinates.
|
| void | curve (std::vector< double > &lagTime, std::vector< double > &total, std::vector< double > &axial, std::vector< double > &lateral, std::vector< std::size_t > &nOrigins) const |
| bool | fit (double tStart, double tEnd, DiffusionFitResult &out) const |
Streaming multi-origin MSD accumulator with arbitrary-axis split.
When maxLag > 0, memory is bounded to O(nParticles * maxLag / originStride). When maxLag == 0, all lags up to framesSeen - 1 are retained.
Definition at line 281 of file trajectory.hpp.
◆ MsdAccumulator()
| traj::MsdAccumulator::MsdAccumulator |
( |
std::size_t | nParticles, |
|
|
std::size_t | maxLag, |
|
|
std::size_t | originStride, |
|
|
double | dt, |
|
|
const double | axis[3] ) |
◆ curve()
| void traj::MsdAccumulator::curve |
( |
std::vector< double > & | lagTime, |
|
|
std::vector< double > & | total, |
|
|
std::vector< double > & | axial, |
|
|
std::vector< double > & | lateral, |
|
|
std::vector< std::size_t > & | nOrigins ) const |
◆ fit()
| bool traj::MsdAccumulator::fit |
( |
double | tStart, |
|
|
double | tEnd, |
|
|
DiffusionFitResult & | out ) const |
◆ framesSeen()
| std::size_t traj::MsdAccumulator::framesSeen |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ numLags()
| std::size_t traj::MsdAccumulator::numLags |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ numParticles()
| std::size_t traj::MsdAccumulator::numParticles |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ push()
| bool traj::MsdAccumulator::push |
( |
const double * | xyz, |
|
|
std::size_t | nParticles, |
|
|
const double * | box9OrNull = nullptr ) |
Push one frame of coordinates.
If box9OrNull is non-null, coordinates are unwrapped incrementally across consecutive frames before accumulating displacements. If null, xyz is used directly as unwrapped coordinates.
◆ valid()
| bool traj::MsdAccumulator::valid |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
The documentation for this class was generated from the following file: