examples_time.h

来自「C++神经网络开发包ANNIE」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _E_T_H#define _E_T_H#include <vector>#include "defines.h"namespace annie	{/** * Function that can be sampled in discrete time steps */typedef real (*TimeSeriesCreatingFunction)(unsigned time);/** * Store for samples */typedef std::vector<real> SamplesContainer;/** * Sample the given function */void sampleFunction(TimeSeriesCreatingFunction f, unsigned from, unsigned to, SamplesContainer &out);/** * Make time-series examples from the given sample set. * * Examples will look like s[j],...,s[j+inputs-1] --> s[j+inputs],...,s[j+inputs+outputs-1] */class TrainingSet;TrainingSet *makeExamples(unsigned inputs, unsigned outputs, const SamplesContainer &samples, int from=0, int to=-1);} //namespace annie#endif //_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?