iCub-main
Loading...
Searching...
No Matches
Macros | Functions
lmlibportable.cpp File Reference
#include <iostream>
#include <cmath>
#include <stdio.h>
#include "iCub/learningMachine/MachinePortable.h"
#include "iCub/learningMachine/MachineCatalogue.h"
#include "iCub/learningMachine/TransformerPortable.h"
#include "iCub/learningMachine/TransformerCatalogue.h"
#include <yarp/sig/Vector.h>
#include <yarp/os/Property.h>
#include <yarp/math/Math.h>
#include <yarp/math/Rand.h>
#include <yarp/os/SystemClock.h>
+ Include dependency graph for lmlibportable.cpp:

Go to the source code of this file.

Macros

#define MIN(a, b)   ((a < b) ? a : b)
 
#define NO_TRAIN   4000
 
#define NO_TEST   8000
 
#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 22 of file lmlibportable.cpp.

◆ NO_TEST

#define NO_TEST   8000

Definition at line 25 of file lmlibportable.cpp.

◆ NO_TRAIN

#define NO_TRAIN   4000

Definition at line 24 of file lmlibportable.cpp.

◆ NOISE_MAX

#define NOISE_MAX   0.05

Definition at line 27 of file lmlibportable.cpp.

◆ NOISE_MIN

#define NOISE_MIN   -0.05

Definition at line 26 of file lmlibportable.cpp.

Function Documentation

◆ createSample()

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

Definition at line 64 of file lmlibportable.cpp.

◆ cross()

double cross ( double  x1,
double  x2 
)

Definition at line 36 of file lmlibportable.cpp.

◆ elementDiv()

Vector elementDiv ( const Vector &  v,
double  d 
)

Definition at line 55 of file lmlibportable.cpp.

◆ elementProd()

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

Definition at line 49 of file lmlibportable.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 88 of file lmlibportable.cpp.

◆ sin2d()

double sin2d ( double  x1,
double  x2 
)

Definition at line 45 of file lmlibportable.cpp.