Sorry to say, but this file is a mess, and far from being mergable:

-wrong formatting (See my other comments on style)
-not well structured, what are all those function definitions doing, why do you even need them for simple operations such as plus/minus/times?
-the bitmasking for the mode is not how things should be done, rather use Enums like in other Shogun classes
-standard normal PDF thing should be in CStatistics, in fact, there already is something similar, same for cdf/etc. Those things should be put into some helper class in a way that they can be used from elsewhere easily. No need to re-invent the wheel all over again
-assert should be REQUIRE, see other files
-Nothing is documented
-This is not an example, but rather a module that should go into some helper class, such as CMath, CStatistics or similar, we can discuss that
-This is an example, examples are just to illustrate API usage, things such as EXPECT_NEAR should go into corresponding (simple) unit tests

-many more problems here. Your work here is appreciated, but please clean this up first, and send it in a seperate PR *after* the previous one is merged. You seem to be adding new things to the PR rather than addressing the old issues. Let's keep things simple and get your previous codes merged before attempting this one.