From 8b73646e7823523b2ad04a263795de45e6ba5804 Mon Sep 17 00:00:00 2001 From: Jurgen Van Gael Date: Sun, 20 Sep 2009 00:04:58 +0800 Subject: [PATCH] Added Histogram example in F#. Removed AlmostZero from incomplete Gamma function. Ported Pearson correlation computation. Added more histogram unit tests. Fixed a bug in the histogram code. Signed-off-by: jvangael Signed-off-by: jvangael --- src/FSharpExamples/FSharpExamples.fsproj | 1 + src/FSharpExamples/Histogram.fs | 43 +++++++++++ src/Numerics/Numerics.csproj | 1 + src/Numerics/SpecialFunctions/Gamma.cs | 6 +- src/Numerics/Statistics/Correlation.cs | 76 +++++++++++++++++++ src/Numerics/Statistics/Histogram.cs | 12 +-- .../StatisticsTests/CorrelationTests.cs | 70 +++++++++++++++++ .../StatisticsTests/HistogramTests.cs | 38 ++++++++++ src/UnitTests/UnitTests.csproj | 1 + 9 files changed, 240 insertions(+), 8 deletions(-) create mode 100644 src/FSharpExamples/Histogram.fs create mode 100644 src/Numerics/Statistics/Correlation.cs create mode 100644 src/UnitTests/StatisticsTests/CorrelationTests.cs diff --git a/src/FSharpExamples/FSharpExamples.fsproj b/src/FSharpExamples/FSharpExamples.fsproj index 19695e9d..29aae21a 100644 --- a/src/FSharpExamples/FSharpExamples.fsproj +++ b/src/FSharpExamples/FSharpExamples.fsproj @@ -52,6 +52,7 @@ +