Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
TrajectoryFilter.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11#include "core/Cell.hpp"
12
13#include <span>
14#include <vector>
15
16namespace correlation::core {
17
18class Trajectory;
19
25public:
36 [[nodiscard]] static std::vector<Cell>
37 filterConsecutiveDuplicates(std::span<const Cell> frames,
38 real_t tolerance = static_cast<real_t>(1e-5));
39
50 static size_t removeConsecutiveDuplicatesInPlace(std::vector<Cell> &frames,
51 real_t tolerance = static_cast<real_t>(1e-5));
52
59 static size_t removeDuplicatedFrames(Trajectory &trajectory,
60 real_t tolerance = static_cast<real_t>(1e-5));
61};
62
63} // namespace correlation::core
Simulation cell structure with periodic boundary conditions.
Domain filter responsible for removing duplicate or invalid frames from a trajectory sequence.
Definition TrajectoryFilter.hpp:24
static size_t removeConsecutiveDuplicatesInPlace(std::vector< Cell > &frames, real_t tolerance=static_cast< real_t >(1e-5))
Filters and removes consecutive duplicate frames in-place from a vector of Cell frames.
Definition TrajectoryFilter.cpp:65
static std::vector< Cell > filterConsecutiveDuplicates(std::span< const Cell > frames, real_t tolerance=static_cast< real_t >(1e-5))
Filters consecutive duplicated frames from a sequence of Cell snapshots.
Definition TrajectoryFilter.cpp:43
static size_t removeDuplicatedFrames(Trajectory &trajectory, real_t tolerance=static_cast< real_t >(1e-5))
Filters and removes consecutive duplicate frames in-place from a Trajectory.
Definition TrajectoryFilter.cpp:88
This class stores a series of snapshots of a system.
Definition Trajectory.hpp:32
Definition ITrajectoryCalculator.hpp:13
double real_t
Definition Precision.hpp:18