QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
VegaBumpCollection Class Reference

#include <vegabumpcluster.hpp>

+ Collaboration diagram for VegaBumpCollection:

Public Member Functions

 VegaBumpCollection (const ext::shared_ptr< MarketModel > &volStructure, bool allowFactorwiseBumping=true)
 
 VegaBumpCollection (std::vector< VegaBumpCluster > allBumps, ext::shared_ptr< MarketModel > volStructure)
 
Size numberBumps () const
 
const ext::shared_ptr< MarketModel > & associatedModel () const
 
const std::vector< VegaBumpCluster > & allBumps () const
 
bool isFull () const
 
bool isNonOverlapping () const
 
bool isSensible () const
 

Private Attributes

std::vector< VegaBumpClusterallBumps_
 
ext::shared_ptr< MarketModelassociatedVolStructure_
 
bool checked_
 
bool nonOverlapped_
 
bool full_
 

Detailed Description

There are too many pseudo-root elements to allow bumping them all independently so we cluster them together and then divide all elements into a collection of such clusters.

Examples
MarketModels.cpp.

Definition at line 99 of file vegabumpcluster.hpp.

Constructor & Destructor Documentation

◆ VegaBumpCollection() [1/2]

VegaBumpCollection ( const ext::shared_ptr< MarketModel > &  volStructure,
bool  allowFactorwiseBumping = true 
)

Definition at line 94 of file vegabumpcluster.cpp.

◆ VegaBumpCollection() [2/2]

VegaBumpCollection ( std::vector< VegaBumpCluster allBumps,
ext::shared_ptr< MarketModel volStructure 
)

Definition at line 130 of file vegabumpcluster.cpp.

Member Function Documentation

◆ numberBumps()

Size numberBumps ( ) const

Definition at line 227 of file vegabumpcluster.cpp.

+ Here is the caller graph for this function:

◆ associatedModel()

const ext::shared_ptr< MarketModel > & associatedModel ( ) const

Definition at line 111 of file vegabumpcluster.hpp.

+ Here is the caller graph for this function:

◆ allBumps()

const std::vector< VegaBumpCluster > & allBumps ( ) const

Definition at line 140 of file vegabumpcluster.cpp.

+ Here is the caller graph for this function:

◆ isFull()

bool isFull ( ) const

Definition at line 145 of file vegabumpcluster.cpp.

+ Here is the caller graph for this function:

◆ isNonOverlapping()

bool isNonOverlapping ( ) const

Definition at line 181 of file vegabumpcluster.cpp.

+ Here is the caller graph for this function:

◆ isSensible()

bool isSensible ( ) const

Definition at line 218 of file vegabumpcluster.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ allBumps_

std::vector<VegaBumpCluster> allBumps_
private

Definition at line 126 of file vegabumpcluster.hpp.

◆ associatedVolStructure_

ext::shared_ptr<MarketModel> associatedVolStructure_
private

Definition at line 127 of file vegabumpcluster.hpp.

◆ checked_

bool checked_
mutableprivate

Definition at line 128 of file vegabumpcluster.hpp.

◆ nonOverlapped_

bool nonOverlapped_
mutableprivate

Definition at line 129 of file vegabumpcluster.hpp.

◆ full_

bool full_
mutableprivate

Definition at line 130 of file vegabumpcluster.hpp.