Skip to content

Gamma calculation with combined curve#1680

Merged
yukiiwashita merged 1 commit into
masterfrom
topic/split-curve-gamma-calculator
May 8, 2018
Merged

Gamma calculation with combined curve#1680
yukiiwashita merged 1 commit into
masterfrom
topic/split-curve-gamma-calculator

Conversation

@yukiiwashita

@yukiiwashita yukiiwashita commented May 4, 2018

Copy link
Copy Markdown
Contributor
  • Split a curve into underlying curves in the curve gamma calculator

nodalCurve, currency, c -> immProv.toBuilder().discountCurve(currency, c).build(), sensitivitiesFn);
curve, currency, c -> immProv.toBuilder().discountCurve(currency, c).build(), sensitivitiesFn);
result = result.combinedWith(gammaSingle);
} else if (curve.split().size() > 1) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this just be a foreach loop of the split curves? Won't that handle the non-combined case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underlying curves should be checked only when a sensitivity object is not found, because CurrencyParameterSensitivity is not necessarily split.

@yukiiwashita
yukiiwashita merged commit 68b8199 into master May 8, 2018
@yukiiwashita
yukiiwashita deleted the topic/split-curve-gamma-calculator branch May 8, 2018 14:16
jodastephen pushed a commit that referenced this pull request May 11, 2018
@jodastephen jodastephen modified the milestones: v1.8, v2.0 Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants