Allan Bazinet
7e8afe7cfc
Ensure 1e-16 precision from Taylor series
2024-11-27 12:48:00 -08:00
Allan Bazinet
a0c9f3820c
Increase default terms to 11
2024-11-27 12:32:56 -08:00
Allan Bazinet
f2d9e16082
Precompute Chebyshev node factors
...
We can do all the expensive trig functions at compile time, once.
2024-11-27 11:07:57 -08:00
Allan Bazinet
5d3042dfea
Hoist Chebyshev invariants
2024-11-27 10:16:01 -08:00
Allan Bazinet
7888edc8a4
Precompute base offset
2024-11-27 07:29:03 -08:00
Allan Bazinet
775553634e
Inline span handling
2024-11-27 07:20:51 -08:00
Allan Bazinet
159084f4b7
Use clamp()
2024-11-27 07:05:04 -08:00
Allan Bazinet
8c8c82b3ae
Simplify range limit calculations, as if by span
2024-11-27 06:59:22 -08:00
Allan Bazinet
56df0a4ab0
Ensure compile-time computations
2024-11-27 06:11:31 -08:00
Allan Bazinet
150670f935
Evalulate methods should be const
2024-11-27 05:54:11 -08:00
Allan Bazinet
2462a1f99f
Evaluation to member functions
2024-11-27 05:19:57 -08:00
Allan Bazinet
93958bea36
Coefficients vector size is known in advance
2024-11-27 04:30:18 -08:00
Allan Bazinet
5ce351f352
Add template argument
2024-11-26 14:43:22 -08:00
Allan Bazinet
1132c37820
Cleanup and commentary
2024-11-26 14:38:05 -08:00
Allan Bazinet
129ad7f914
Commentary
2024-11-26 12:37:31 -08:00
Allan Bazinet
6ce552123a
Commentary
2024-11-26 12:28:40 -08:00
Allan Bazinet
5c5312b61d
Use comma initializer syntax
2024-11-26 11:58:32 -08:00
Allan Bazinet
e6d6c966cf
Commentary
2024-11-26 10:15:36 -08:00
Allan Bazinet
6d56282358
Move Vandemonde matrix to heap allocation
2024-11-26 09:40:46 -08:00
Allan Bazinet
f1fbec1340
Reduce polynomial degree to 5
2024-11-26 09:26:28 -08:00
Allan Bazinet
48bbf063d1
Test with points driven by degree, 7 degrees
2024-11-26 09:11:54 -08:00
Allan Bazinet
dc654bc3c8
Use std::size_t for integer sequence count
2024-11-26 07:44:31 -08:00
Allan Bazinet
13bec7b99f
Experiment with 10 points, not 64
2024-11-26 07:16:14 -08:00
Allan Bazinet
21997538b1
Use overloading for evaluate fold
2024-11-26 07:00:26 -08:00
Allan Bazinet
0ffaaf98f6
Fix make_integer_sequence and inline
2024-11-26 06:45:08 -08:00
Allan Bazinet
016ff20fe4
Handle any odd degree polynomial via unrolling
2024-11-26 00:32:23 -08:00
Allan Bazinet
cd758034eb
Manually unroll Estrin’s evaluation
2024-11-25 22:59:37 -08:00
Allan Bazinet
7ef5ec089f
Inline Estrin’s method
2024-11-25 22:03:52 -08:00
Allan Bazinet
d73c7bb88a
Remove debug
2024-11-25 21:04:15 -08:00
Allan Bazinet
d3de887d24
Tune polynomial loop
2024-11-25 21:03:04 -08:00
Allan Bazinet
2403766d81
Use inline namespace
2024-11-25 20:46:18 -08:00
Allan Bazinet
ccfcafcf90
Inline Chebyshev computation to loop
2024-11-25 20:41:48 -08:00
Allan Bazinet
35e7027d1c
Return spans as vector
2024-11-25 20:32:29 -08:00
Allan Bazinet
d17ff6a6aa
Compute Chebyshev spans at runtime, on width
2024-11-25 19:49:38 -08:00
Allan Bazinet
0361080665
Flattening experiment, Chebyshev, Estrin
2024-11-25 12:59:01 -08:00
Allan Bazinet
03efbfdad1
Revert to original polynomial fit
2024-11-24 05:41:47 -08:00
Allan Bazinet
fb13796eb4
Ongoing polynomial fit weighting experimentation
2024-11-23 17:12:35 -08:00
Allan Bazinet
31ce8c981f
Use proper numeric types
2024-11-23 11:23:49 -08:00
Allan Bazinet
648d0afebc
A weighted polynomial approach for Joe to test
...
Applies a gaussian weighting to the center, rolling off the edges. We could also do a linear weighting if that’d be more appropriate, but gaussian seems likely to be our best bet here. Change the 2.0 sigman divisor to change the number of standard deviations from the mean.
2024-11-23 10:48:23 -08:00
Allan Bazinet
bcc85ccb6f
Add missing header
2024-11-23 09:47:34 -08:00
Allan Bazinet
938fadaa8e
Update commentary
2024-11-23 09:38:27 -08:00
Allan Bazinet
8ff0930d56
Commentary
2024-11-23 09:30:08 -08:00
Allan Bazinet
39a406044a
Copy the range in computeBase()
2024-11-23 09:13:26 -08:00
Allan Bazinet
b0b9007a99
Clean up flatten algorithm
2024-11-23 08:54:45 -08:00
Allan Bazinet
d24ea6dfd3
Use in-tree Eigen source
2024-11-23 06:06:42 -08:00
Allan Bazinet
8307bb8387
Use pimp idiom for WF::Flatten
2024-11-23 06:02:11 -08:00
Allan Bazinet
445e09a596
Use explicit FLATTEN_TERMS
2024-11-22 22:34:34 -08:00
Allan Bazinet
267ad6d976
Use column pivoting Householder’s variant
2024-11-22 22:27:25 -08:00
Allan Bazinet
f5f2e1934f
Use unrolled Horner’s method
2024-11-22 22:10:32 -08:00
Allan Bazinet
25025916c8
Commentary
2024-11-22 21:22:50 -08:00