Particle Identification and Tracking
|
simple computation. More...
#include <corr_goftheta.h>
Public Member Functions | |
void | compute (const particle *, const std::vector< const particle * > &) |
takes in a particle_base object. More... | |
void | out_to_wrapper (utilities::Generic_wrapper &, const std::string &name) const |
Corr_goftheta (int bins, float max, std::string &) | |
constructor. More... | |
void | display () const |
Displays plot of . More... | |
float | get_max_range () const |
Get the maximum range. More... | |
void | normalize (std::vector< float > &out) const |
normalizes to the average bin count More... | |
virtual void | out_to_wrapper (utilities::Generic_wrapper &, const std::string &, const utilities::Md_store *) const =0 |
outputs the result of the computation to the wrapper More... | |
void | add_plane_temperature (float temp) |
Adds the temperature for a plane. More... | |
Protected Attributes | |
float | temperature_sum_ |
The sum of the temperatures added. More... | |
unsigned int | plane_count_ |
Count of the number of planes added. More... | |
Private Member Functions | |
void | trim_nhood (const particle *p_in, const std::vector< const particle * > &nhood_in, std::vector< const particle * > &nhood_out) const |
trims vectors to only include particles close enough to care about them More... | |
Private Attributes | |
std::vector< int > | bin_count_ |
gives the number entries in the bin More... | |
std::vector< float > | bin_edges_ |
gives the value of the bottom edge of the bin More... | |
unsigned int | n_bins_ |
number of bins More... | |
float | max_range_ |
maximum range More... | |
std::string | name_ |
name of group for writing out to a wrapper More... | |
int | parts_added_ |
count of the number of particles added More... | |
simple computation.
This is the three-point correlation function of opening angle of two particles around a joint particle.
Corr_goftheta::Corr_goftheta | ( | int | bins, |
float | max, | ||
std::string & | name | ||
) |
constructor.
The maximum range is taken from particle::max_neighborhood_range_. The bins are spaced linearly.
References bin_count_, bin_edges_, n_bins_, and pi.
|
inherited |
Adds the temperature for a plane.
References tracking::Corr::plane_count_, and tracking::Corr::temperature_sum_.
Referenced by tracking::Hash_shelf::compute_corr().
takes in a particle_base object.
For correlations that need the tracking information this should throw an error or something clever like that
Implements tracking::Corr.
References bin_count_, tracking::particle_base::get_position(), utilities::Tuple< T, length >::make_unit(), n_bins_, parts_added_, pi, and trim_nhood().
void Corr_goftheta::display | ( | ) | const |
Displays plot of .
References bin_edges_, and normalize().
|
inlinevirtual |
void Corr_goftheta::normalize | ( | std::vector< float > & | out) | const |
normalizes to the average bin count
References bin_count_, and n_bins_.
Referenced by display(), and out_to_wrapper().
void Corr_goftheta::out_to_wrapper | ( | utilities::Generic_wrapper & | in, |
const std::string & | name | ||
) | const |
|
pure virtualinherited |
outputs the result of the computation to the wrapper
Implemented in tracking::Dummy_corr, tracking::Corr_pair_diffusion, tracking::Corr_theta_2pt, and tracking::Corr_gofr.
|
private |
trims vectors to only include particles close enough to care about them
References tracking::particle_base::distancesq(), and max_range_.
Referenced by compute().
|
private |
gives the number entries in the bin
Referenced by compute(), Corr_goftheta(), and normalize().
|
private |
gives the value of the bottom edge of the bin
Referenced by Corr_goftheta(), display(), and out_to_wrapper().
|
private |
maximum range
Referenced by get_max_range(), and trim_nhood().
|
private |
number of bins
Referenced by compute(), Corr_goftheta(), normalize(), and out_to_wrapper().
|
private |
name of group for writing out to a wrapper
|
private |
count of the number of particles added
Referenced by compute().
|
protectedinherited |
Count of the number of planes added.
Referenced by tracking::Corr::add_plane_temperature(), tracking::Corr_gofr::out_to_wrapper(), and tracking::Corr_theta_2pt::out_to_wrapper().
|
protectedinherited |
The sum of the temperatures added.
Referenced by tracking::Corr::add_plane_temperature(), tracking::Corr_gofr::out_to_wrapper(), and tracking::Corr_theta_2pt::out_to_wrapper().