MCPcopy Create free account
hub / github.com/bgrimstad/splinter / runRecursiveDomainReductionTest

Function runRecursiveDomainReductionTest

test/bsplinetestingutilities.cpp:143–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool 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//{

Callers

nothing calls this directly

Calls 5

sampleTestFunctionFunction · 0.85
BuilderClass · 0.85
domainReductionTestFunction · 0.85
degreeMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected