gtrigtable.h
来自「一个由Mike Gashler完成的机器学习方面的includes neural」· C头文件 代码 · 共 41 行
H
41 行
/* Copyright (C) 2006, Mike Gashler This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. see http://www.gnu.org/copyleft/lesser.html*/#ifndef __GTRIGTABLE_H__#define __GTRIGTABLE_H__class GPrecalculatedTrigTable{public: // nDivisions is the number of data points between 0 and PI / 2 GPrecalculatedTrigTable(int nDivisions); virtual ~GPrecalculatedTrigTable();#ifndef NO_TEST_CODE static void Test();#endif // !NO_TEST_CODE // d is in radians of course. // It will interpolate values not in the table double Sin(double d); // d is in radians of course. // It will interpolate values not in the table double Cos(double d);protected: double* m_pTable; double m_dDivisionSize; int m_nDivisions;};#endif // __GTRIGTABLE_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?