37 std::vector<int> m_ids1;
39 std::vector<int> m_ids2;
42 evaluate(boost::mpi::communicator
const &comm,
60 throw std::runtime_error(
"max_r has to be > min_r");
62 throw std::domain_error(
"n_r_bins has to be >= 1");
63 this->n_r_bins =
static_cast<std::size_t
>(
n_r_bins);
66 operator()(boost::mpi::communicator
const &comm)
const final;
68 std::vector<int> &
ids1() {
return m_ids1; }
69 std::vector<int> &
ids2() {
return m_ids2; }
70 std::vector<int>
const &
ids1()
const {
return m_ids1; }
71 std::vector<int>
const &
ids2()
const {
return m_ids2; }
Base class for observables.
Radial distribution function.
RDF(std::vector< int > ids1, std::vector< int > ids2, int n_r_bins, double min_r, double max_r)
std::vector< int > & ids2()
std::vector< int > const & ids1() const
std::vector< int > const & ids2() const
std::vector< std::size_t > shape() const override
std::vector< int > & ids1()
std::vector< double > operator()(boost::mpi::communicator const &comm) const final
std::vector< std::reference_wrapper< Particle const > > ParticleReferenceRange