[NumCS] Finish PCA

This commit is contained in:
janishutz committed 2025-12-29 11:56:03 +01:00
1 parent 2151deb491
commit e909c263e7
4 files changed
+86 -7

No files matched your search

-4
View File
@@ -1,4 +0,0 @@
def simpson(f, a, b, N):
x, h = np.linspace(a, b, 2 * int(N) + 1, retstep=True)
I = h / 3.0 * (np.sum(f(x[::2])) + 4.0 * np.sum(f(x[1::2])) + f(x[0]) - f(x[-1]))
return I