RapidLib  v0.1.2
A simple library for interactive machine learning
modelSetEmbindings.h
Go to the documentation of this file.
1 #ifndef modelSetEmbindings_h
2 #define modelSetEmbindings_h
3 
4 #include <emscripten.h>
5 #include <bind.h>
6 
7 using namespace emscripten;
8 
9 EMSCRIPTEN_BINDINGS(modelSet_module) {
10  class_<modelSet>("ModelSetCpp") //name change so that I can wrap it in Javascript. -mz
11  .constructor()
12  .function("train", &modelSet::train)
13  .function("initialize", &modelSet::initialize)
14  .function("process", &modelSet::process)
15  ;
16 
17 };
18 
19 #endif
bool initialize()
Definition: modelSet.cpp:52
EMSCRIPTEN_BINDINGS(modelSet_module)
Definition: modelSetEmbindings.h:9
virtual bool train(const std::vector< trainingExample > &trainingSet)
Definition: modelSet.cpp:27
std::vector< double > process(const std::vector< double > &inputVector)
Definition: modelSet.cpp:62