Skip to content

Commit

Permalink
[RD-FFK-NET8] Removed GBMEstimator.dll direct linking fairmat/dev/fai…
Browse files Browse the repository at this point in the history
…rmatserver#3493
  • Loading branch information
forna1991 committed May 6, 2024
1 parent 3d5a2ec commit 04c3f90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Heston/Heston.csproj
Expand Up @@ -26,6 +26,11 @@
<Copyright>Copyright © Fairmat SRL 2009-2015</Copyright>
<Product>Heston</Product>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Refs\**" />
<EmbeddedResource Remove="Refs\**" />
<None Remove="Refs\**" />
</ItemGroup>
<ItemGroup>
<Reference Include="CoreExtensions">
<HintPath>..\..\DVPLReferences\CoreExtensions.dll</HintPath>
Expand All @@ -50,9 +55,6 @@
<HintPath>..\..\DVPLReferences\Fairmat.Optimization.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="GBMEstimation">
<HintPath>..\..\DVPLReferences\Plugins\GBMEstimation.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand Down
5 changes: 3 additions & 2 deletions Heston/HestonEstimator.cs
Expand Up @@ -24,6 +24,7 @@
using Fairmat.Optimization;
using DVPLI.MarketDataTypes;
using Heston;
using Fairmat.Math;

namespace HestonEstimator
{
Expand Down Expand Up @@ -279,8 +280,8 @@ internal static IFunction IstantaneousDividendYield(EquityCalibrationData ecd)
{
double support = Math.Min(6, Math.Max(2, (ecd.dyFunc as PFunction).Support[Range.End]));

var avgDy = new GBM.FunctionParamPiecewiseConstant(support, 0);//positive f.
(avgDy as GBM.FunctionParamBase).FitToMean(ecd.dyFunc, 0, support);
var avgDy = new FunctionParamPiecewiseConstant(support, 0);//positive f.
(avgDy as FunctionParamBase).FitToMean(ecd.dyFunc, 0, support);
return avgDy;
}

Expand Down
Binary file removed Heston/Refs/GBMEstimation.dll
Binary file not shown.

0 comments on commit 04c3f90

Please sign in to comment.