an intermediate commit to keep updates
This commit is contained in:
parent
1070ec8a32
commit
963d59e706
21 changed files with 649 additions and 556 deletions
25
src/doHyperVolume.h
Normal file
25
src/doHyperVolume.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef _doHyperVolume_h
|
||||
#define _doHyperVolume_h
|
||||
|
||||
template < typename EOT >
|
||||
class doHyperVolume
|
||||
{
|
||||
public:
|
||||
typedef typename EOT::AtomType AtomType;
|
||||
|
||||
doHyperVolume() : _hv(1) {}
|
||||
|
||||
void update(AtomType v)
|
||||
{
|
||||
_hv *= ::sqrt( v );
|
||||
|
||||
assert( _hv <= std::numeric_limits< AtomType >::max() );
|
||||
}
|
||||
|
||||
AtomType get_hypervolume() const { return _hv; }
|
||||
|
||||
protected:
|
||||
AtomType _hv;
|
||||
};
|
||||
|
||||
#endif // !_doHyperVolume_h
|
||||
Loading…
Add table
Add a link
Reference in a new issue