AndroMeta  2.0.0
Classes | Functions
AndroMeta/include/AndroMeta/MLib.h File Reference

A collection of static functions callable from M. More...

#include <cmath>
#include <AndroMeta/MLibBase.h>
#include <AndroMeta/MNode.h>
#include <AndroMeta/MVar.h>
#include <AndroMeta/MObject.h>
#include <AndroMeta/MMath.h>
#include <AndroMeta/MProgram.h>
#include <AndroMeta/MTime.h>

Go to the source code of this file.

Classes

class  Meta::MLib
 A library of static functions callable from M. More...

Functions

mvar Meta::MFunc::toVar (mnode n, bool codeData=false)
mvar Meta::MFunc::fromStr (const mstr &str, bool literal=true, bool exact=false)
void Meta::MFunc::srand (uint64_t seed)
double Meta::MFunc::uniform ()
double Meta::MFunc::uniform (double a, double b)
double Meta::MFunc::exponential (double x)
double Meta::MFunc::normal (double m, double s)
double Meta::MFunc::erlang (double n, double x)
double Meta::MFunc::pareto (double k, double a)
double Meta::MFunc::lognormal (double a, double b)
double Meta::MFunc::chisquare (double n)
long Meta::MFunc::bernoulli (double p)
long Meta::MFunc::equilikely (long a, long b)
long Meta::MFunc::binomial (long n, double p)
long Meta::MFunc::geometric (double p)
long Meta::MFunc::bpascal (long n, double p)
long Meta::MFunc::poisson (double m)
const mvar & Meta::MFunc::choice (const mvar &seq)
mvec Meta::MFunc::randomSequence (long a, long b)
mvar Meta::MFunc::mixedDistribution (const mvar &v)
mvar Meta::MFunc::degrees (const mvar &d)
double Meta::MFunc::mpi ()
double Meta::MFunc::sqrt (double v)
double Meta::MFunc::pow (double v, double exponent)
double Meta::MFunc::abs (double v)
double Meta::MFunc::log10 (double v)
double Meta::MFunc::cos (double v)
double Meta::MFunc::acos (double v)
double Meta::MFunc::cosh (double v)
double Meta::MFunc::sin (double v)
double Meta::MFunc::asin (double v)
double Meta::MFunc::sinh (double v)
double Meta::MFunc::tan (double v)
double Meta::MFunc::atan (double v)
double Meta::MFunc::atan2 (double y, double x)
double Meta::MFunc::tanh (double v)
double Meta::MFunc::inf ()
double Meta::MFunc::negInf ()
double Meta::MFunc::floor (double v)
double Meta::MFunc::ceil (double v)
double Meta::MFunc::round (double v, double precision=1)
bool Meta::MFunc::nearInteger (double v, mvar &n)
double Meta::MFunc::mdistance (const mvar &u, const mvar &v)
mvar Meta::MFunc::scaleVector (const mvar &u, double magnitude)
mvec Meta::MFunc::vectorRange (const mvar &b)
mvec Meta::MFunc::vectorRange (const mvar &a, const mvar &b)
mvec Meta::MFunc::vectorRange (const mvar &a, const mvar &b, const mvar &inc)
mlist Meta::MFunc::listRange (const mvar &b)
mlist Meta::MFunc::listRange (const mvar &a, const mvar &b)
mlist Meta::MFunc::listRange (const mvar &a, const mvar &b, const mvar &inc)
mvar Meta::MFunc::clamp (const mvar &v, const mvar &min, const mvar &max)
void Meta::MFunc::sleep (double secs)
void Meta::MFunc::print (const mstr &str)
mstr Meta::MFunc::repeatString (const mstr &str, int n)
mvar Meta::MFunc::mergeSymbolicMaps (const mvar &m1, const mvar &m2)
bool Meta::MFunc::hasArg (const mvar &key)
mvar Meta::MFunc::args ()
void Meta::MFunc::setArgs (const mvar &args)
mvar Meta::MFunc::arg (const mvar &key)
mvar Meta::MFunc::arg (const mvar &key, const mvar &def)
void Meta::MFunc::setArg (const mvar &key, const mvar &value)
void Meta::MFunc::argDefault (const mvar &key, const mvar &value)
double Meta::MFunc::systemTime ()
mstr Meta::MFunc::formatTime (double t, const mstr &format)
void Meta::MFunc::setDefaultPrecision (size_t bits)
mstr Meta::MFunc::formatTime (double t)
mvec Meta::MFunc::crossProduct (const mvec &u, const mvec &v)
mvar Meta::MFunc::dotProduct (const mvec &u, const mvec &v)

Detailed Description

A collection of static functions callable from M.