Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

42a inaccurate fdpm amplitude and phase derivative values with respect to mu a and mu s #134

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Vts/Factories/ComputationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,15 @@ public static double[] ComputeReflectance(
// new[] { op.Mua, op.Musp, op.G, op.N }
//double[] optimizationParameters = GetOptimizationParameters(forwardSolver, solutionDomainType, independentAxisTypes); // will need this for inverse solver

// create a list of inputs (besides optical properties) that corresponds to the behavior of the function above
if (IsComplexSolver(solutionDomainType) && forwardAnalysisType != ForwardAnalysisType.R) // complex derivative
{
// create a list of inputs (besides optical properties) that corresponds to the behavior of the function above
// create Complex derivative function with re/im and dre/dim in it
return func(independentValues)
.Concat(func.GetDerivativeFunc(forwardAnalysisType)(independentValues)).ToArray();
}

// prior code
return forwardAnalysisType == ForwardAnalysisType.R
? func(independentValues)
: func.GetDerivativeFunc(forwardAnalysisType)(independentValues);
Expand Down
Loading