use default typename for distrib, correct constructor superclass init
This commit is contained in:
parent
2bc68f94a6
commit
c1d49d7bd2
3 changed files with 9 additions and 9 deletions
|
|
@ -39,13 +39,13 @@ Authors:
|
||||||
* This class uses the NormalMono distribution parameters (bounds) to return
|
* This class uses the NormalMono distribution parameters (bounds) to return
|
||||||
* a random position used for population sampling.
|
* a random position used for population sampling.
|
||||||
*/
|
*/
|
||||||
template < typename EOT >
|
template < typename EOT, typename D = edoNormalMono< EOT > >
|
||||||
class edoSamplerNormalMono : public edoSampler< edoNormalMono< EOT > >
|
class edoSamplerNormalMono : public edoSampler< D >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename EOT::AtomType AtomType;
|
typedef typename EOT::AtomType AtomType;
|
||||||
|
|
||||||
edoSamplerNormalMono( edoRepairer<EOT> & repairer ) : edoSampler( repairer) {}
|
edoSamplerNormalMono( edoRepairer<EOT> & repairer ) : edoSampler< D >( repairer) {}
|
||||||
|
|
||||||
EOT sample( edoNormalMono< EOT >& distrib )
|
EOT sample( edoNormalMono< EOT >& distrib )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,13 @@ Authors:
|
||||||
|
|
||||||
//! edoSamplerNormalMulti< EOT >
|
//! edoSamplerNormalMulti< EOT >
|
||||||
|
|
||||||
template< class EOT >
|
template< class EOT, typename D = edoNormalMulti< EOT > >
|
||||||
class edoSamplerNormalMulti : public edoSampler< edoNormalMulti< EOT > >
|
class edoSamplerNormalMulti : public edoSampler< D >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename EOT::AtomType AtomType;
|
typedef typename EOT::AtomType AtomType;
|
||||||
|
|
||||||
edoSamplerNormalMulti( edoRepairer<EOT> & repairer ) : edoSampler( repairer) {}
|
edoSamplerNormalMulti( edoRepairer<EOT> & repairer ) : edoSampler< D >( repairer) {}
|
||||||
|
|
||||||
class Cholesky
|
class Cholesky
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -38,13 +38,13 @@ Authors:
|
||||||
* This class uses the Uniform distribution parameters (bounds) to return
|
* This class uses the Uniform distribution parameters (bounds) to return
|
||||||
* a random position used for population sampling.
|
* a random position used for population sampling.
|
||||||
*/
|
*/
|
||||||
template < typename EOT, class D=edoUniform<EOT> > // FIXME: D template name is there really used ?!?
|
template < typename EOT, class D = edoUniform<EOT> >
|
||||||
class edoSamplerUniform : public edoSampler< edoUniform< EOT > >
|
class edoSamplerUniform : public edoSampler< D >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef D Distrib;
|
typedef D Distrib;
|
||||||
|
|
||||||
edoSamplerUniform( edoRepairer<EOT> & repairer ) : edoSampler( repairer) {}
|
edoSamplerUniform( edoRepairer<EOT> & repairer ) : edoSampler< D >( repairer) {}
|
||||||
|
|
||||||
EOT sample( edoUniform< EOT >& distrib )
|
EOT sample( edoUniform< EOT >& distrib )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue