QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Projection Class Reference

#include <ql/math/optimization/projection.hpp>

+ Inheritance diagram for Projection:
+ Collaboration diagram for Projection:

Public Member Functions

 Projection (const Array &parameterValues, std::vector< bool > fixParameters=std::vector< bool >())
 
virtual Array project (const Array &parameters) const
 returns the subset of free parameters corresponding More...
 
virtual Array include (const Array &projectedParameters) const
 returns whole set of parameters corresponding to the set More...
 
virtual ~Projection ()=default
 

Protected Member Functions

void mapFreeParameters (const Array &parameterValues) const
 

Protected Attributes

Size numberOfFreeParameters_ = 0
 
const Array fixedParameters_
 
Array actualParameters_
 
std::vector< boolfixParameters_
 

Detailed Description

Definition at line 33 of file projection.hpp.

Constructor & Destructor Documentation

◆ Projection()

Projection ( const Array parameterValues,
std::vector< bool fixParameters = std::vector<bool>() 
)

Definition at line 27 of file projection.cpp.

+ Here is the call graph for this function:

◆ ~Projection()

virtual ~Projection ( )
virtualdefault

Member Function Documentation

◆ project()

Array project ( const Array parameters) const
virtual

returns the subset of free parameters corresponding

Definition at line 54 of file projection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ include()

Array include ( const Array projectedParameters) const
virtual

returns whole set of parameters corresponding to the set

Definition at line 67 of file projection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapFreeParameters()

void mapFreeParameters ( const Array parameterValues) const
protected

Definition at line 43 of file projection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ numberOfFreeParameters_

Size numberOfFreeParameters_ = 0
protected

Definition at line 49 of file projection.hpp.

◆ fixedParameters_

const Array fixedParameters_
protected

Definition at line 50 of file projection.hpp.

◆ actualParameters_

Array actualParameters_
mutableprotected

Definition at line 51 of file projection.hpp.

◆ fixParameters_

std::vector<bool> fixParameters_
protected

Definition at line 52 of file projection.hpp.