카테고리 없음
커브 피팅 (1) - 기타
newpolaris
2021. 6. 7. 00:38
기타:
2차에 대해 3x3 행렬을 LU로 푼 것으로 바로 대입함 댓글에 나와있지만, 결국 여러 좌표를 더 쓰기 위해 inverse matrix를 이용해야한다
https://adnoctum.tistory.com/104
로제타 코드 c++에서는 식이 더 간단하게 만들어뒀다
https://rosettacode.org/wiki/Polynomial_regression#C.23
c는 gsl_multifit_linear 사용했네; 나중에 참고 가능할 듯
가중치는 어떻게 처리?
https://en.wikipedia.org/wiki/Weighted_least_squares
weight는 각 식에 가중치를 주는 것이고, 결국 대각 행렬로 matrix form 형태를 뛰게 되는 듯
와 신난다;
http://polynomialregression.drque.net/WeightedRegression.html
좀 괜찮은 코드
c++
https://gist.github.com/chrisengelsma/108f7ab0a746323beaaf7d6634cf4add