MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SolveSGs

Function SolveSGs

BakingLab/SG.cpp:213–225  ·  view source on GitHub ↗

Solve the set of spherical gaussians based on input set of data

Source from the content-addressed store, hash-verified

211
212// Solve the set of spherical gaussians based on input set of data
213void SolveSGs(SGSolveParam& params)
214{
215 Assert_(params.NumSGs <= uint64(AppSettings::MaxSGCount));
216 for(uint64 i = 0; i < params.NumSGs; ++i)
217 params.OutSGs[i] = defaultInitialGuess[i];
218
219 if(AppSettings::SolveMode == SolveModes::NNLS)
220 SolveNNLS(params);
221 else if(AppSettings::SolveMode == SolveModes::SVD)
222 SolveSVD(params);
223 else
224 SolveProjection(params);
225}

Callers 1

FinalResultMethod · 0.85

Calls 3

SolveNNLSFunction · 0.85
SolveSVDFunction · 0.85
SolveProjectionFunction · 0.85

Tested by

no test coverage detected