| 141 | } |
| 142 | |
| 143 | bool runRecursiveDomainReductionTest() |
| 144 | { |
| 145 | // Create new DataTable to manage samples |
| 146 | DataTable samples = sampleTestFunction(); |
| 147 | |
| 148 | // Build B-splines that interpolate the samples |
| 149 | BSpline bspline1 = BSpline::Builder(samples).degree(1).build(); |
| 150 | BSpline bspline2 = BSpline::Builder(samples).degree(2).build(); |
| 151 | BSpline bspline3 = BSpline::Builder(samples).degree(3).build(); |
| 152 | BSpline bspline4 = BSpline::Builder(samples).degree(4).build(); |
| 153 | |
| 154 | if (!domainReductionTest(bspline1, bspline1)) |
| 155 | return false; |
| 156 | if (!domainReductionTest(bspline2, bspline2)) |
| 157 | return false; |
| 158 | if (!domainReductionTest(bspline3, bspline3)) |
| 159 | return false; |
| 160 | if (!domainReductionTest(bspline4, bspline4)) |
| 161 | return false; |
| 162 | |
| 163 | return true; |
| 164 | } |
| 165 | |
| 166 | //double kroneckerTestFunction(DenseVector x) |
| 167 | //{ |
nothing calls this directly
no test coverage detected