American-transaction costs 1.0.0.0
American option pricer under proportional transaction costs
|
Collects all objects of interest with paths moving through the specified nodes. More...
#include <some.h>
Public Member Functions | |
virtual void | dump_result (const size_t t, const size_t k, const T &object) |
size_t | node (const size_t t, const size_t k) const |
operator StatisticsGathererInitial< T > () const | |
operator T () const | |
T & | operator() (const size_t t, const size_t k) |
StatisticsGathererPath< T > | operator() (const std::vector< size_t > &path) const |
T | operator() (const size_t t, const size_t k) const |
std::vector< T > | operator[] (const size_t t) const |
std::vector< T > & | operator[] (const size_t t) |
size_t | size (const size_t t) const |
size_t | size () const |
StatisticsGathererSome (const std::vector< std::vector< size_t > > &path) |
Collects all objects of interest with paths moving through the specified nodes.
StatisticsGathererSome< T >::StatisticsGathererSome | ( | const std::vector< std::vector< size_t > > & | path | ) | [inline] |
Constructor.
path | Information is gathered for this collection of nodes. Any element path[t][k] is a node at the ![]() |
virtual void StatisticsGathererSome< T >::dump_result | ( | const size_t | t, |
const size_t | k, | ||
const T & | object | ||
) | [inline, virtual] |
Collects intance of object T at time t at node k.
Reimplemented from StatisticsGatherer< T >.
size_t StatisticsGathererSome< T >::node | ( | const size_t | t, |
const size_t | k | ||
) | const [inline] |
Node number k at time step t.
StatisticsGathererSome< T >::operator StatisticsGathererInitial< T > | ( | ) | const [inline] |
StatisticsGathererSome< T >::operator T | ( | ) | const [inline] |
StatisticsGathererPath<T> StatisticsGathererSome< T >::operator() | ( | const std::vector< size_t > & | path | ) | const [inline] |
T& StatisticsGathererSome< T >::operator() | ( | const size_t | t, |
const size_t | k | ||
) | [inline] |
T StatisticsGathererSome< T >::operator() | ( | const size_t | t, |
const size_t | k | ||
) | const [inline] |
std::vector<T>& StatisticsGathererSome< T >::operator[] | ( | const size_t | t | ) | [inline] |
std::vector<T> StatisticsGathererSome< T >::operator[] | ( | const size_t | t | ) | const [inline] |
size_t StatisticsGathererSome< T >::size | ( | const size_t | t | ) | const [inline] |
Number of steps.
size_t StatisticsGathererSome< T >::size | ( | ) | const [inline] |
Number of steps.