Skip to content

Commit

Permalink
Largest Update of Code after 2 Years.
Browse files Browse the repository at this point in the history
Finished alpha Testing.
  • Loading branch information
aheldman authored and aheldman committed Sep 7, 2021
1 parent f173dbc commit 62f5f63
Show file tree
Hide file tree
Showing 53 changed files with 25,502 additions and 6,412 deletions.
19 changes: 17 additions & 2 deletions CalScec/Analysis/Fitting/LMA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6817,14 +6817,29 @@ private static bool FitBackground(Analysis.Peaks.Functions.PeakFunction PF, doub

#region Peak region routines

//private static void FitPeakRegionFunction(Analysis.Peaks.Functions.PeakRegionFunction PRF, double lambda)
//{
// bool Converged = false;
// double Lambda = lambda;

// Analysis.Peaks.Functions.PeakRegionFunction TrialPeakRegion = PRF.Clone() as Analysis.Peaks.Functions.PeakRegionFunction;

// double FirstChi2 = TrialPeakRegion.Chi2Function;
// for (int TotalTrials = 0; TotalTrials < CalScec.Properties.Settings.Default.MaxFittingTrials; TotalTrials++)
// {

// }

//}

private static void CorrectFWHMLorentzRatioDown(Analysis.Peaks.Functions.PeakRegionFunction PRF)
{
for (int i = 0; i < 5; i++)
{
for (int n = 0; n < PRF.Count; n++)
{
PRF[n].Sigma *= 0.9;
PRF[n].LorentzRatio *= 0.9;
PRF[n].Sigma *= 0.95;
//PRF[n].LorentzRatio *= 0.9;
}

FitAngleSigmaIntensityLorentzRatioBackground(PRF, LMA._lambda, true);
Expand Down
2 changes: 1 addition & 1 deletion CalScec/Analysis/Fitting/PeakFittingWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<MenuItem Name="ResidualMinorGridStyleDash" Header="Dash" IsCheckable="True" Click="ChangeResidualMinorGridLineStyle_Click"/>
</MenuItem>
</MenuItem>
<MenuItem Header="Reflex auto correction active" IsCheckable="True" Name="ReflexAutoCorrection" Click="ReflexAutoCorrection_Click"/>
<MenuItem Header="Peak auto correction active" IsCheckable="True" Name="ReflexAutoCorrection" Click="ReflexAutoCorrection_Click"/>
</MenuItem>
<Separator Width="35"/>
<MenuItem Header="Region manipulations">
Expand Down
Loading

0 comments on commit 62f5f63

Please sign in to comment.