| 
    IMP Reference Guide
    2.23.0
    
   The Integrative Modeling Platform 
   | 
 
Base class for a unit simplex embedded in D-dimensional real space. More...
#include <IMP/algebra/UnitSimplexD.h>
 Inheritance diagram for IMP::algebra::UnitSimplexBaseD< D >:Base class for a unit simplex embedded in D-dimensional real space.
See UnitSimplexD for more information.
Definition at line 29 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 36 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 47 of file UnitSimplexD.h.
      
  | 
  pure virtual | 
Get dimension D of embedded real space.
Implemented in IMP::algebra::UnitSimplexD<-1 >, and IMP::algebra::UnitSimplexD< D >.