From 12c02f064db12d6d94063bf6dd9e4eb80f4252b8 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 월, 11 10월 2021 15:30:00 +0900 Subject: [PATCH] Ongoing60 #3662 CF AOI Review 전설비 알람 발생 조치 - Review History File Mapping 해제 - Review Inner History 다운 현상 예외처리 추가 - Review End 시 Review 다운 현상 예외처리 추가 --- ReviewHistory/include/akSTL/backup/akInterpolation.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/include/akSTL/backup/akInterpolation.h b/ReviewHistory/include/akSTL/backup/akInterpolation.h new file mode 100644 index 0000000..57f4d4f --- /dev/null +++ b/ReviewHistory/include/akSTL/backup/akInterpolation.h @@ -0,0 +1,48 @@ +#pragma once + + +#include "akLinker.h" +#include <vector> + +namespace akSTL +{ + class akSTL_DLLSPEC CakInterpolation + { + public: + struct _Data + { + _Data() + { + x = y = 0; + } + double x; + double y; + }; + + public: + CakInterpolation(); + ~CakInterpolation(); + + //폴리노미얼 데이터 생성(rate:데이터 간격) + void CaculationPolinomial(double min, double max, double rate); + //큐빅스플라인 데이터 생성(rate:점과 점사이의 데이터 갯수) + void CaculationCubicSpline(double rate); + //Linear(rate:점과 점사이의 데이터 갯수) + void CaculationLinear(int step); + + void AddPoint(double x, double y); + inline void ClearPoint(){m_vecInterPoint.clear();}; + + inline _Data GetData(int index); + inline int GetDataNum(){return (int)m_vecInterPoint.size();}; + + + + + protected: + std::vector<_Data> m_vecOrgPoint; + std::vector<_Data> m_vecInterPoint; + private: + void solveTridiag(double* khb, double* diag, double* khp, double* b, int n) ; + }; +} \ No newline at end of file -- Gitblit v1.9.3