lambday / flash

Proof of concept for refactoring shogun's statistical hypothesis framework
GNU General Public License v3.0
0 stars 0 forks source link

make the within block estimation different #11

Closed lambday closed 8 years ago

lambday commented 8 years ago

make the MMD class a template

template <class Derived>
class CMMD
{
  using est_method = typename Derived::est_method; 
  // within block direct for B-test, Linear time test
  // but it is something else for child
};

class CQuadraticTimeMMD :: public CMMD<CQuadraticTimeMMD>
{
};

class CBTestMMD :: public CMMD<CBTestMMD >
{
};

class CLinearTimeMMD :: public CMMD<CLinearTimeMMD >
{
};
lambday commented 8 years ago

can take care of different normalization constant for the tests in the subclasses itself, and the base class can use that to compute variance

lambday commented 8 years ago

done.