IMP Reference Guide
2.13.0
The Integrative Modeling Platform
|
Base class for a unit simplex embedded in D-dimensional real space. More...
#include <IMP/algebra/UnitSimplexD.h>
Base class for a unit simplex embedded in D-dimensional real space.
See UnitSimplexD for more information.
Definition at line 28 of file UnitSimplexD.h.
Public Member Functions | |
VectorD< D > | get_barycenter () const |
Get center of mass on simplex in embedded coordinates. More... | |
bool | get_contains (const VectorD< D > &p, double atol=std::numeric_limits< double >::epsilon()) const |
Get whether the point is on the unit simplex. More... | |
virtual int | get_dimension () const =0 |
Get dimension D of embedded real space. More... | |
VectorD<D> IMP::algebra::UnitSimplexBaseD< D >::get_barycenter | ( | ) | const |
Get center of mass on simplex in embedded coordinates.
This is equivalent to the ones vector divided by D.
Definition at line 35 of file UnitSimplexD.h.
bool IMP::algebra::UnitSimplexBaseD< D >::get_contains | ( | const VectorD< D > & | p, |
double | atol = std::numeric_limits<double>::epsilon() |
||
) | const |
Get whether the point is on the unit simplex.
[in] | p | Point |
[in] | atol | Absolute tolerance of error for each element. Total tolerance is atol*d. |
Definition at line 46 of file UnitSimplexD.h.
|
pure virtual |
Get dimension D of embedded real space.
Implemented in IMP::algebra::UnitSimplexD<-1 >, and IMP::algebra::UnitSimplexD< D >.