Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
P4_< E1, E2, E3, E4 > Struct Template Reference

#include <qle/models/crossassetanalyticsbase.hpp>

+ Collaboration diagram for P4_< E1, E2, E3, E4 >:

Public Member Functions

 P4_ (const E1 &e1, const E2 &e2, const E3 &e3, const E4 &e4)
 
Real eval (const CrossAssetModel &x, const Real t) const
 

Public Attributes

const E1 & e1_
 
const E2 & e2_
 
const E3 & e3_
 
const E4 & e4_
 

Detailed Description

template<typename E1, typename E2, typename E3, typename E4>
struct QuantExt::CrossAssetAnalytics::P4_< E1, E2, E3, E4 >

product expression, 4 factors

Definition at line 71 of file crossassetanalyticsbase.hpp.

Constructor & Destructor Documentation

◆ P4_()

P4_ ( const E1 &  e1,
const E2 &  e2,
const E3 &  e3,
const E4 &  e4 
)

Member Function Documentation

◆ eval()

Real eval ( const CrossAssetModel x,
const Real  t 
) const

Definition at line 73 of file crossassetanalyticsbase.hpp.

73 {
74 return e1_.eval(x, t) * e2_.eval(x, t) * e3_.eval(x, t) * e4_.eval(x, t);
75 }

Member Data Documentation

◆ e1_

const E1& e1_

Definition at line 76 of file crossassetanalyticsbase.hpp.

◆ e2_

const E2& e2_

Definition at line 77 of file crossassetanalyticsbase.hpp.

◆ e3_

const E3& e3_

Definition at line 78 of file crossassetanalyticsbase.hpp.

◆ e4_

const E4& e4_

Definition at line 79 of file crossassetanalyticsbase.hpp.