1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-30 19:18:21 +01:00
antd-lua-plugin/lib/ann/fann/tests/fann_test_data.h
2018-09-19 15:08:49 +02:00

35 lines
944 B
C++

#ifndef FANN_FANN_TEST_DATA_H
#define FANN_FANN_TEST_DATA_H
#include "gtest/gtest.h"
#include "doublefann.h"
#include "fann_cpp.h"
#include "fann_test.h"
class FannTestData : public FannTest {
protected:
unsigned int numData;
unsigned int numInput;
unsigned int numOutput;
fann_type inputValue;
fann_type outputValue;
fann_type **inputData;
fann_type **outputData;
virtual void SetUp();
virtual void TearDown();
void AssertTrainData(FANN::training_data &trainingData, unsigned int numData, unsigned int numInput,
unsigned int numOutput, fann_type inputValue, fann_type outputValue);
void InitializeTrainDataStructure(unsigned int numData, unsigned int numInput, unsigned int numOutput,
fann_type inputValue, fann_type outputValue, fann_type **inputData,
fann_type **outputData);
};
#endif