iCub-main
Macros | Functions
lmlibindirect.cpp File Reference
#include <iostream>
#include <stdexcept>
#include <cmath>
#include <iCub/learningMachine/RLSLearner.h>
#include <iCub/learningMachine/RandomFeature.h>
#include <yarp/sig/Vector.h>
#include <yarp/os/Property.h>
#include <yarp/math/Math.h>
#include <yarp/math/Rand.h>
+ Include dependency graph for lmlibindirect.cpp:

Go to the source code of this file.

Macros

#define MIN(a, b)   ((a < b) ? a : b)
 
#define NO_TRAIN   1000
 
#define NO_TEST   1000
 
#define NOISE_MIN   -0.05
 
#define NOISE_MAX   0.05
 

Functions

double cross (double x1, double x2)
 
double sin2d (double x1, double x2)
 
void elementProd (const Vector &v1, Vector &v2)
 
Vector elementDiv (const Vector &v, double d)
 
std::pair< Vector, Vector > createSample ()
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ MIN

#define MIN (   a,
 
)    ((a < b) ? a : b)

Definition at line 17 of file lmlibindirect.cpp.

◆ NO_TEST

#define NO_TEST   1000

Definition at line 20 of file lmlibindirect.cpp.

◆ NO_TRAIN

#define NO_TRAIN   1000

Definition at line 19 of file lmlibindirect.cpp.

◆ NOISE_MAX

#define NOISE_MAX   0.05

Definition at line 22 of file lmlibindirect.cpp.

◆ NOISE_MIN

#define NOISE_MIN   -0.05

Definition at line 21 of file lmlibindirect.cpp.

Function Documentation

◆ createSample()

std::pair<Vector, Vector> createSample ( )

Definition at line 59 of file lmlibindirect.cpp.

◆ cross()

double cross ( double  x1,
double  x2 
)

Definition at line 31 of file lmlibindirect.cpp.

◆ elementDiv()

Vector elementDiv ( const Vector &  v,
double  d 
)

Definition at line 50 of file lmlibindirect.cpp.

◆ elementProd()

void elementProd ( const Vector &  v1,
Vector &  v2 
)

Definition at line 44 of file lmlibindirect.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 83 of file lmlibindirect.cpp.

◆ sin2d()

double sin2d ( double  x1,
double  x2 
)

Definition at line 40 of file lmlibindirect.cpp.