julian::DiscretizeWithNumberOfStepsPerYear Class Reference

Discretize the time interval in a way that each year have the same number of time steps . More...

#include <discretizeWithNumberOfStepsPerYear.hpp>

Inheritance diagram for julian::DiscretizeWithNumberOfStepsPerYear:
julian::TimeDiscretization

Public Member Functions

 DiscretizeWithNumberOfStepsPerYear (int n)
 Constructor. More...
 
virtual std::vector< double > operator() (Date start_date, Date end_date, SmartPointer< YearFraction > yf) const
 Discretize the time interval in a way that each year have the same number of time steps. More...
 
virtual DiscretizeWithNumberOfStepsPerYearclone () const
 Virtual copy constructor. More...
 
- Public Member Functions inherited from julian::TimeDiscretization
virtual ~TimeDiscretization ()
 Destructor. More...
 

Private Attributes

int n_
 Number of grid nodes per year. More...
 

Detailed Description

Discretize the time interval in a way that each year have the same number of time steps .

Discretize the time interval in a way that each year have the same number of time steps

Constructor & Destructor Documentation

julian::DiscretizeWithNumberOfStepsPerYear::DiscretizeWithNumberOfStepsPerYear ( int  n)
inlineexplicit

Constructor.

Member Function Documentation

DiscretizeWithNumberOfStepsPerYear * julian::DiscretizeWithNumberOfStepsPerYear::clone ( ) const
virtual

Virtual copy constructor.

Implements julian::TimeDiscretization.

std::vector< double > julian::DiscretizeWithNumberOfStepsPerYear::operator() ( Date  start_date,
Date  end_date,
SmartPointer< YearFraction yf 
) const
virtual

Discretize the time interval in a way that each year have the same number of time steps.

Implements julian::TimeDiscretization.

Member Data Documentation

int julian::DiscretizeWithNumberOfStepsPerYear::n_
private

Number of grid nodes per year.


The documentation for this class was generated from the following files: