tumopp: Tumor growth simulator in C++
|
Derived class of Coord. More...
#include <coord.hpp>
Public Member Functions | |
Neumann (const unsigned d) | |
Constructor. | |
int | graph_distance (const coord_t &v) const override |
Manhattan distance. | |
Public Member Functions inherited from tumopp::Coord | |
template<class URBG > | |
coord_t | random_direction (URBG &engine) |
Choose a random neighbor. | |
virtual std::array< double, MAX_DIM > | continuous (const coord_t &v) const |
Convert coordinates into continuous scale. | |
virtual double | euclidean_distance (const coord_t &v) const |
Euclidean distance. | |
virtual std::vector< coord_t > | core () const |
square or cube | |
std::vector< coord_t > | sphere (size_t n) const |
sphere coordinates with inside-out direction | |
virtual | ~Coord ()=default |
Destructor. | |
const std::vector< coord_t > & | directions () const noexcept |
getter of directions_ | |
unsigned | dimensions () const noexcept |
getter of dimensions_ | |
Additional Inherited Members | |
Protected Member Functions inherited from tumopp::Coord | |
Coord ()=delete | |
Default constructor is deleted. | |
Coord (unsigned d) | |
Constructor: initialize and check dimensions_. | |
Protected Attributes inherited from tumopp::Coord | |
const unsigned | dimensions_ |
{1, 2, 3} | |
std::vector< coord_t > | directions_ |
initialized in derived class constructor | |
std::uniform_int_distribution< unsigned > | dist_direction_ |
initialized in derived class constructor | |
Derived class of Coord.
|
overridevirtual |
Manhattan distance.
Implements tumopp::Coord.