Skip to content

Commit

Permalink
Fix FWHMPeakFinder. First derivative of gauss function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Am6er committed May 5, 2024
1 parent 65379ed commit 5a8321a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BecquerelMonitor/BecquerelMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>2024.04.29.1</ApplicationVersion>
<ApplicationVersion>2024.05.05.1</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
2 changes: 1 addition & 1 deletion BecquerelMonitor/FWHMPeakDetector/PeakFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public double gaussian0 (double x, double mean, double sigma)
public double gaussian1 (double x, double mean, double sigma)
{
double z = x - mean;
return -1 * z * gaussian0(x, mean, sigma);
return -z * gaussian0(x, mean, sigma) / (sigma * sigma);
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions BecquerelMonitor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("2024.04.29.1")]
[assembly: AssemblyVersion("2024.05.05.1")]
[assembly: AssemblyProduct("BecquerelMonitor")]
[assembly: AssemblyCopyright("free")]
[assembly: AssemblyTrademark("none")]
[assembly: AssemblyConfiguration("")]
[assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")]
[assembly: AssemblyFileVersion("2024.04.29.1")]
[assembly: AssemblyFileVersion("2024.05.05.1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("free")]
[assembly: CompilationRelaxations(8)]
Expand Down

0 comments on commit 5a8321a

Please sign in to comment.