Skip to content

Commit

Permalink
Fix FWHMPeakFinder gauss0
Browse files Browse the repository at this point in the history
  • Loading branch information
Am6er committed May 5, 2024
1 parent 5a8321a commit 3a2c9d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BecquerelMonitor/BecquerelMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<MinimumRequiredVersion>2022.07.08.7</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>2024.05.05.1</ApplicationVersion>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>2024.05.05.2</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 @@ -249,7 +249,7 @@ public ConcurrentDictionary<int, double[]> kernel_matrix(double[] edges)
public double gaussian0 (double x, double mean, double sigma)
{
double z = (x - mean) / sigma;
return Math.Exp(-z * z / 2.0);
return Math.Exp(-z * z / 2.0) / (Math.Sqrt(2.0 * Math.PI) * 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.05.05.1")]
[assembly: AssemblyVersion("2024.05.05.2")]
[assembly: AssemblyProduct("BecquerelMonitor")]
[assembly: AssemblyCopyright("free")]
[assembly: AssemblyTrademark("none")]
[assembly: AssemblyConfiguration("")]
[assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")]
[assembly: AssemblyFileVersion("2024.05.05.1")]
[assembly: AssemblyFileVersion("2024.05.05.2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("free")]
[assembly: CompilationRelaxations(8)]
Expand Down

0 comments on commit 3a2c9d4

Please sign in to comment.